diff --git a/dsql-app/.local_dist/BUILD_ID b/dsql-app/.local_dist/BUILD_ID index cedbd42..062544c 100644 --- a/dsql-app/.local_dist/BUILD_ID +++ b/dsql-app/.local_dist/BUILD_ID @@ -1 +1 @@ -Nq-wCyHRgv6y1x0kf3WAs \ No newline at end of file +HcU1grNdeICz9zVVD_7aa \ 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 7a9aec1..d7460d9 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/Nq-wCyHRgv6y1x0kf3WAs/_buildManifest.js", - "static/Nq-wCyHRgv6y1x0kf3WAs/_ssgManifest.js" + "static/HcU1grNdeICz9zVVD_7aa/_buildManifest.js", + "static/HcU1grNdeICz9zVVD_7aa/_ssgManifest.js" ], "rootMainFiles": [], "rootMainFilesTree": {}, @@ -174,7 +174,7 @@ "static/chunks/5160-1036ca7a8eaeebea.js", "static/chunks/6156-e0dcf7d8f002ae4a.js", "static/chunks/2163-2888548322298e53.js", - "static/chunks/6460-1a5ce626ace242bf.js", + "static/chunks/6460-3f63007c03118fc2.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-941e5c22e7c7ea7e.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": [ @@ -206,7 +206,7 @@ "static/chunks/5414-904c4e3b277b1a40.js", "static/chunks/6836-b267904eb7c540d4.js", "static/chunks/2163-2888548322298e53.js", - "static/chunks/6460-1a5ce626ace242bf.js", + "static/chunks/6460-3f63007c03118fc2.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ed4516e967a3f21e.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": [ @@ -222,7 +222,7 @@ "static/chunks/5414-904c4e3b277b1a40.js", "static/chunks/6836-b267904eb7c540d4.js", "static/chunks/2163-2888548322298e53.js", - "static/chunks/6460-1a5ce626ace242bf.js", + "static/chunks/6460-3f63007c03118fc2.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-380611fd56aa33ad.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": [ diff --git a/dsql-app/.local_dist/cache/config.json b/dsql-app/.local_dist/cache/config.json index 795b4ff..341f006 100644 --- a/dsql-app/.local_dist/cache/config.json +++ b/dsql-app/.local_dist/cache/config.json @@ -1,7 +1,7 @@ { "telemetry": { - "notifiedAt": "1733737088586", - "anonymousId": "580079ea0d318a855bbfb1d5dfe483a1bb4ffd95aa16c241013fb9392f752826", - "salt": "e9d5648644e6dcd9acd9cac282e8d916" + "notifiedAt": "1733747119453", + "anonymousId": "0d240eb9f14eaa71752d03fb94b38bdbf327d425c1660e5bb6a61296a1b46901", + "salt": "4c9776bfc00f4c0417be0db8eac0efba" } } \ 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 2f22aea..e16ec5b 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 23d16a9..dba03cc 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 fd1ede8..aa70a67 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 a48882d..38f51f9 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 9594c1f..7375ada 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 6fcf0ff..c9b07d6 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/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../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/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.js","../node_modules/next/dist/compiled/ws/index.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/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/build/next-dir-paths.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/debug/index.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/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/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/shell-quote/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/lru-cache/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/semver/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/caniuse-lite/package.json","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../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/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-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/entrypoints.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/hooks-client-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/router-context.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/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-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/entrypoints.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/hooks-client-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/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.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/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../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/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.js","../node_modules/next/dist/compiled/ws/index.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/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/build/next-dir-paths.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/debug/index.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/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/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/compiled/babel/bundle.js","../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/package.json","../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/shell-quote/index.js","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/semver/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/caniuse-lite/package.json","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../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/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-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/entrypoints.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/hooks-client-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/router-context.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/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-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/entrypoints.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/hooks-client-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/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.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 441e4ba..fd5aca9 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/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../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/interop-default.js","../node_modules/next/dist/lib/format-dynamic-import-path.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/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/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/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/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/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/react-dom/package.json","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/sharp/package.json","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/@next/env/package.json","../node_modules/sharp/lib/index.js","../node_modules/react-dom/index.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/url.js","../node_modules/@next/env/dist/index.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/date.js","../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../node_modules/next/dist/server/node-environment-extensions/node-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/server/app-render/action-utils.js","../node_modules/next/dist/lib/metadata/is-metadata-route.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/head.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.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/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/react-dom/cjs/react-dom.production.min.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/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/compiled/fresh/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/content-disposition/package.json","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../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/redirect-status.js","../node_modules/next/dist/lib/is-edge-runtime.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/compiled/@hapi/accept/package.json","../node_modules/next/dist/shared/lib/router/utils/index.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-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/app-route-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/pages-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/server/resume-data-cache/resume-data-cache.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/server/patch-error-inspect.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/node-environment-extensions/utils.js","../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/next/dist/shared/lib/invariant-error.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/send/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/shared/lib/side-effect.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/shared/lib/amp-mode.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../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/shared/lib/utils/warn-once.js","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/lib/pick.js","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/error-source.js","../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-app-route-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../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/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/web/sandbox/resource-managers.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/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.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/app-route-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/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/resume-data-cache/cache-store.js","../node_modules/scheduler/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-linux-x64/lib/sharp-linux-x64.node","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/shared/lib/router/utils/path-match.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-experimental.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.runtime.prod.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.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/compiled/ws/index.js","../node_modules/next/dist/server/route-modules/pages/module.js","../node_modules/next/dist/server/route-modules/app-page/module.js","../node_modules/next/dist/server/app-render/dynamic-rendering.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.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/client/components/react-dev-overlay/server/shared.js","../node_modules/scheduler/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/utility.js","../node_modules/next/dist/experimental/testmode/server-edge.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/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/next/dist/compiled/source-map/package.json","../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/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/cjs/scheduler.development.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/build/next-dir-paths.js","../node_modules/next/dist/compiled/edge-runtime/index.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/server/render.js","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/client/components/static-generation-bailout.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/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/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/debug/index.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/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/@edge-runtime/cookies/package.json","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/detect-libc/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/server/after/revalidation-utils.js","../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/@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/color/index.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/server/app-render/flight-render-result.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/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/server-inserted-html.js","../node_modules/next/dist/server/app-render/required-scripts.js","../node_modules/next/dist/server/app-render/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/create-component-tree.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/app-render-prerender-utils.js","../node_modules/next/dist/server/app-render/prospective-render-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/parse-loader-tree.js","../node_modules/next/dist/client/components/dev-root-not-found-boundary.js","../node_modules/color/package.json","../node_modules/detect-libc/lib/detect-libc.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/sharp/node_modules/semver/functions/coerce.js","../node_modules/sharp/node_modules/semver/functions/gte.js","../node_modules/sharp/node_modules/semver/functions/satisfies.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/sharp/node_modules/semver/package.json","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../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/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/detect-libc/lib/filesystem.js","../node_modules/detect-libc/lib/process.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/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/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/next/dist/compiled/react-is/index.js","../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/lib/app-dir-module.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/server/lib/patch-fetch.js","../node_modules/next/dist/client/components/parallel-route-default.js","../node_modules/next/dist/client/components/use-reducer.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/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/client/components/not-found-boundary.js","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/router-reducer/router-reducer-types.js","../node_modules/next/dist/client/components/router-reducer/create-href-from-url.js","../node_modules/next/dist/client/components/router-reducer/compute-changed-path.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.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/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../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/next/dist/client/components/router-reducer/router-reducer.js","../node_modules/sharp/node_modules/semver/classes/semver.js","../node_modules/sharp/node_modules/semver/functions/parse.js","../node_modules/sharp/node_modules/semver/functions/compare.js","../node_modules/sharp/node_modules/semver/internal/re.js","../node_modules/sharp/node_modules/semver/classes/range.js","../node_modules/busboy/package.json","../node_modules/color-string/index.js","../node_modules/color-convert/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/color-string/package.json","../node_modules/color-convert/package.json","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/client/normalize-trailing-slash.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/next/dist/server/lib/dedupe-fetch.js","../node_modules/next/dist/client/components/navigation-untracked.js","../node_modules/next/dist/client/components/navigation.js","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.js","../node_modules/sharp/node_modules/semver/internal/debug.js","../node_modules/sharp/node_modules/semver/internal/constants.js","../node_modules/sharp/node_modules/semver/internal/parse-options.js","../node_modules/sharp/node_modules/semver/internal/identifiers.js","../node_modules/sharp/node_modules/semver/internal/lrucache.js","../node_modules/sharp/node_modules/semver/classes/comparator.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/client/components/router-reducer/create-router-cache-key.js","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.js","../node_modules/next/dist/client/components/router-reducer/apply-flight-data.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-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/restore-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/server-action-reducer.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/lru-cache/package.json","../node_modules/next/dist/compiled/semver/package.json","../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/use-websocket.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/busboy/lib/utils.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/color-name/package.json","../node_modules/next/dist/lib/metadata/get-metadata-route.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/simple-swizzle/index.js","../node_modules/color-name/index.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/simple-swizzle/package.json","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/sharp/node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/app-find-source-map-url.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/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js","../node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.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/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/components/router-reducer/handle-segment-mismatch.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/react-dev-overlay/internal/components/ShadowPortal.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/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/styles/CssReset.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/helpers/attach-hydration-error-state.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/enqueue-client-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/streamsearch/package.json","../node_modules/sharp/node_modules/semver/functions/eq.js","../node_modules/sharp/node_modules/semver/functions/neq.js","../node_modules/sharp/node_modules/semver/functions/gt.js","../node_modules/sharp/node_modules/semver/functions/lte.js","../node_modules/sharp/node_modules/semver/functions/lt.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/streamsearch/lib/sbmh.js","../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../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/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/icons/CloseIcon.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/icons/LightningBolt.js","../node_modules/caniuse-lite/data/agents.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/component-stack-pseudo-html.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/Overlay/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/styles.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/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/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/LeftRightDialogHeader/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/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/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../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/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/group-stack-frames-by-framework.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/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/Dialog/DialogHeader.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/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/components/VersionStalenessInfo/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/LeftRightDialogHeader/LeftRightDialogHeader.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/Toast/Toast.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.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/icons/FrameworkIcon.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/Overlay/maintain--tab-focus.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/container/RuntimeError/CallStackFrame.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/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.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/amp-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/head-manager-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/image-config-context.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/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-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/head-manager-context.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/html-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-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js"]} \ No newline at end of file +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../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/interop-default.js","../node_modules/next/dist/lib/format-dynamic-import-path.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/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/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/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/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/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/react-dom/package.json","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/sharp/package.json","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/@next/env/package.json","../node_modules/sharp/lib/index.js","../node_modules/react-dom/index.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/url.js","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/server/node-environment-extensions/error-inspect.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/web-crypto.js","../node_modules/next/dist/server/node-environment-extensions/node-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/server/app-render/action-utils.js","../node_modules/next/dist/lib/metadata/is-metadata-route.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/head.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.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/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/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/react-dom/cjs/react-dom.production.min.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/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/compiled/fresh/package.json","../node_modules/next/dist/compiled/path-to-regexp/package.json","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/send/package.json","../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/redirect-status.js","../node_modules/next/dist/lib/is-edge-runtime.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/compiled/@hapi/accept/package.json","../node_modules/next/dist/shared/lib/router/utils/index.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-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/app-route-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/pages-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/server/resume-data-cache/resume-data-cache.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/server/patch-error-inspect.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/node-environment-extensions/utils.js","../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/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/shared/lib/invariant-error.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/send/index.js","../node_modules/next/dist/shared/lib/side-effect.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/shared/lib/amp-mode.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../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/shared/lib/utils/warn-once.js","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/lib/pick.js","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/error-source.js","../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-app-route-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../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/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/web/sandbox/resource-managers.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/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.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/app-route-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/resume-data-cache/cache-store.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/scheduler/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-linux-x64/lib/sharp-linux-x64.node","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-experimental.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.runtime.prod.js","../node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.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/compiled/ws/index.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/server/app-render/dynamic-rendering.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.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/client/components/react-dev-overlay/server/shared.js","../node_modules/scheduler/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/utility.js","../node_modules/sharp/lib/output.js","../node_modules/next/dist/experimental/testmode/server-edge.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/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/next/dist/compiled/source-map/package.json","../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/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/cjs/scheduler.development.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/build/next-dir-paths.js","../node_modules/next/dist/compiled/edge-runtime/index.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/server/render.js","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/client/components/static-generation-bailout.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/server/app-render/app-render.js","../node_modules/next/dist/server/route-modules/route-module.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/debug/index.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/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/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/package.json","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-filename-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/pages/pages-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/detect-libc/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/server/after/revalidation-utils.js","../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/@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/color/index.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/server/app-render/flight-render-result.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/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/action-handler.js","../node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.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/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/create-component-tree.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/app-render-prerender-utils.js","../node_modules/next/dist/server/app-render/prospective-render-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/parse-loader-tree.js","../node_modules/next/dist/client/components/dev-root-not-found-boundary.js","../node_modules/color/package.json","../node_modules/detect-libc/lib/detect-libc.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/sharp/node_modules/semver/functions/gte.js","../node_modules/sharp/node_modules/semver/functions/satisfies.js","../node_modules/sharp/node_modules/semver/functions/coerce.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/sharp/node_modules/semver/package.json","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../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/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/detect-libc/lib/process.js","../node_modules/detect-libc/lib/filesystem.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/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/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/next/dist/compiled/react-is/index.js","../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/lib/app-dir-module.js","../node_modules/next/dist/server/app-render/interop-default.js","../node_modules/next/dist/server/lib/patch-fetch.js","../node_modules/next/dist/server/app-render/get-layer-assets.js","../node_modules/next/dist/client/components/parallel-route-default.js","../node_modules/next/dist/client/components/use-reducer.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/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/client/components/not-found-boundary.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/router-reducer/router-reducer-types.js","../node_modules/next/dist/client/components/router-reducer/create-href-from-url.js","../node_modules/next/dist/client/components/router-reducer/compute-changed-path.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../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/shared/lib/router/utils/as-path-to-search-params.js","../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/package.json","../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/next/dist/client/components/router-reducer/router-reducer.js","../node_modules/sharp/node_modules/semver/functions/compare.js","../node_modules/sharp/node_modules/semver/classes/range.js","../node_modules/sharp/node_modules/semver/classes/semver.js","../node_modules/sharp/node_modules/semver/functions/parse.js","../node_modules/sharp/node_modules/semver/internal/re.js","../node_modules/busboy/package.json","../node_modules/color-string/index.js","../node_modules/color-convert/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/shell-quote/index.js","../node_modules/color-string/package.json","../node_modules/color-convert/package.json","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/client/normalize-trailing-slash.js","../node_modules/next/dist/server/lib/dedupe-fetch.js","../node_modules/next/dist/client/components/navigation-untracked.js","../node_modules/next/dist/client/components/navigation.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/next/dist/compiled/string-hash/index.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.js","../node_modules/sharp/node_modules/semver/internal/lrucache.js","../node_modules/sharp/node_modules/semver/internal/parse-options.js","../node_modules/sharp/node_modules/semver/classes/comparator.js","../node_modules/sharp/node_modules/semver/internal/debug.js","../node_modules/sharp/node_modules/semver/internal/constants.js","../node_modules/sharp/node_modules/semver/internal/identifiers.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/client/components/router-reducer/create-router-cache-key.js","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.js","../node_modules/next/dist/client/components/router-reducer/apply-flight-data.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-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/restore-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/server-action-reducer.js","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/semver/package.json","../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/use-websocket.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/busboy/lib/utils.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/color-name/package.json","../node_modules/next/dist/lib/metadata/get-metadata-route.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/simple-swizzle/index.js","../node_modules/color-name/index.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/simple-swizzle/package.json","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/sharp/node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/app-find-source-map-url.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/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js","../node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.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/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/components/router-reducer/handle-segment-mismatch.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/react-dev-overlay/internal/components/ShadowPortal.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/StaticIndicator.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/ComponentStyles.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/CssReset.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/helpers/attach-hydration-error-state.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/enqueue-client-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/streamsearch/package.json","../node_modules/sharp/node_modules/semver/functions/eq.js","../node_modules/sharp/node_modules/semver/functions/neq.js","../node_modules/sharp/node_modules/semver/functions/gt.js","../node_modules/sharp/node_modules/semver/functions/lt.js","../node_modules/sharp/node_modules/semver/functions/lte.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/streamsearch/lib/sbmh.js","../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../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/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/icons/CloseIcon.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/icons/LightningBolt.js","../node_modules/caniuse-lite/data/agents.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/component-stack-pseudo-html.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/Overlay/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/styles.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/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/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/LeftRightDialogHeader/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/copy-button/index.js","../node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json","../node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs","../node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../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/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/group-stack-frames-by-framework.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/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/Dialog/DialogHeader.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/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/components/VersionStalenessInfo/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/LeftRightDialogHeader/LeftRightDialogHeader.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/Toast/Toast.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.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/icons/FrameworkIcon.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/Overlay/body-locker.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/container/RuntimeError/CallStackFrame.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/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.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/amp-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/head-manager-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/image-config-context.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/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-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/head-manager-context.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/html-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-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.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 8216894..1e37436 100644 --- a/dsql-app/.local_dist/prerender-manifest.json +++ b/dsql-app/.local_dist/prerender-manifest.json @@ -1 +1 @@ -{"version":4,"routes":{"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/gui-reference/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/gui-reference/upload-media.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/api-reference/get.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/api-reference/post.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/database-reference/data-types.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/database-reference/querying-data.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/quick-start.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/gui-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/api-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/database-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/Nq-wCyHRgv6y1x0kf3WAs/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["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/Nq-wCyHRgv6y1x0kf3WAs/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"9efabebf32dfc9cf96c1abd937a068c7","previewModeSigningKey":"b8c99dc632f2b77a93944e487e130fa787794bb8f26ff02ab53fd01f4a62e4dd","previewModeEncryptionKey":"a7843e2cf9f34bb3b8b80867b803d000a9c04831186d53a6236ce48dbaa3783f"}} \ No newline at end of file +{"version":4,"routes":{"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/gui-reference/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/gui-reference/upload-media.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/api-reference/get.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/api-reference/post.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/database-reference/data-types.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/database-reference/querying-data.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/quick-start.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/gui-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/api-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/database-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/HcU1grNdeICz9zVVD_7aa/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["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/HcU1grNdeICz9zVVD_7aa/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"a805016cf83270186839684a138780ee","previewModeSigningKey":"1b0002c6ca112190a6bd0a900e3e1e37a08fd13354da11f39700d7ecacb16732","previewModeEncryptionKey":"603376905223e0a4b2f44939e6587fd6ee8f060e632f07e883a8eece6f6c489d"}} \ 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 9ac0bad..af485dd 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/Nq\\-wCyHRgv6y1x0kf3WAs/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/Nq\\-wCyHRgv6y1x0kf3WAs/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/HcU1grNdeICz9zVVD_7aa/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/HcU1grNdeICz9zVVD_7aa/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/3932.js b/dsql-app/.local_dist/server/chunks/3932.js index ce852c3..043ad57 100644 --- a/dsql-app/.local_dist/server/chunks/3932.js +++ b/dsql-app/.local_dist/server/chunks/3932.js @@ -1 +1 @@ -"use strict";exports.id=3932,exports.ids=[3932],exports.modules={30671:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,t){return t in s?s[t]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,t)):"function"==typeof s&&"default"===t?s:void 0}}})},93615:(e,s,t)=>{let{IncomingMessage:a}=t(81630),l=t(77463),r=t(6505);e.exports=async function(e){let{keyCookieName:s,csrfCookieName:t}=r(),a=`${s}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let n=l({encryptedString:e.cookies[a]});if(!n)return console.log("No user payload found"),null;let i=JSON.parse(n);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}},49888:(e,s,t)=>{t.d(s,{A:()=>b});var a=t(8732),l=t(82015),r=t.n(l),n=t(27912),i=t.n(n),c=t(93353),o=t(82544);let d=(0,o.A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);var h=t(25294);let x=(0,o.A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var p=t(2459);let u=(0,o.A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]]),m=(0,o.A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]]),g=(0,o.A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),j=(0,o.A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);function f(e){let[s,t]=r().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:s?"250px":"300px",zIndex:800},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:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,a.jsx)(d,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,a.jsx)(x,{size:20}),(0,a.jsx)("span",{children:"Error Logs"})]}),(0,a.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Servers"})]}),(0,a.jsxs)("a",{href:"/su/load-balancing","data-currentlink":"/su/load-balancing",children:[(0,a.jsx)(u,{size:20}),(0,a.jsx)("span",{children:"Load Balancing"})]}),!1,(0,a.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,a.jsx)(m,{size:20}),(0,a.jsx)("span",{children:"Backups"})]}),(0,a.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,a.jsx)(g,{size:20}),(0,a.jsx)("span",{children:"Console"})]}),(0,a.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,a.jsx)(j,{size:20}),(0,a.jsx)("span",{children:"Env"})]})]})]})}var y=t(34254),v=t(58526);function k({user:e,extraHeaderContent:s}){let[t,l]=r().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 z-50 shadow-slate-900/5",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.jsx)("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-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,a.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,a.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,a.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,a.jsx)("span",{children:(0,a.jsx)("b",{children:"Super User"})}),(0,a.jsx)(v.A,{size:20}),(0,a.jsx)("div",{className:"dropdown",children:(0,a.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,a.jsx)("div",{className:"ml-2",children:(0,a.jsx)(y.A,{})}),(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"})]})]})})}function b({children:e,head:s,user:t}){return(0,a.jsxs)(r().Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),s]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(f,{}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(k,{user:t}),(0,a.jsx)("div",{className:"flex-col items-start gap-6 px-4 sl:px-8 py-8 bg-slate-50 dark:bg-slate-900",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.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,a.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(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(54896)},2459:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).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"}]])},25294:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(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"}]])},6505:e=>{e.exports=function(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",l=s;e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),l+=t;let r=s;return e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),{keyCookieName:l,csrfCookieName:r+=a}}},77463:(e,s,t)=>{let{scryptSync:a,createDecipheriv:l}=t(55511),{Buffer:r}=t(79428);e.exports=({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,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 o=l("aes-192-cbc",a(n,i,c),r.alloc(16,0));try{let s=o.update(e,"hex","utf8");return s+=o.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},49407:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var a=t(8732);t(82015);var l=t(20883);function r(e){return(0,a.jsxs)(l.Html,{lang:"en",children:[(0,a.jsxs)(l.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)(l.Main,{}),(0,a.jsx)(l.NextScript,{})]})]})}},9455:(e,s)=>{var t;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))}}; \ No newline at end of file +"use strict";exports.id=3932,exports.ids=[3932],exports.modules={30671:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,t){return t in s?s[t]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,t)):"function"==typeof s&&"default"===t?s:void 0}}})},93615:(e,s,t)=>{let{IncomingMessage:a}=t(81630),l=t(77463),r=t(6505);e.exports=async function(e){let{keyCookieName:s,csrfCookieName:t}=r(),a=`${s}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let n=l({encryptedString:e.cookies[a]});if(!n)return console.log("No user payload found"),null;let i=JSON.parse(n);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}},49888:(e,s,t)=>{t.d(s,{A:()=>b});var a=t(8732),l=t(82015),r=t.n(l),n=t(27912),i=t.n(n),c=t(93353),o=t(82544);let d=(0,o.A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);var h=t(25294);let x=(0,o.A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var p=t(2459);let u=(0,o.A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]]),m=(0,o.A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]]),g=(0,o.A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),j=(0,o.A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);function f(e){let[s,t]=r().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:s?"250px":"300px",zIndex:800},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:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,a.jsx)(d,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,a.jsx)(x,{size:20}),(0,a.jsx)("span",{children:"Error Logs"})]}),(0,a.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Servers"})]}),(0,a.jsxs)("a",{href:"/su/load-balancing","data-currentlink":"/su/load-balancing",children:[(0,a.jsx)(u,{size:20}),(0,a.jsx)("span",{children:"Load Balancing"})]}),!1,(0,a.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,a.jsx)(m,{size:20}),(0,a.jsx)("span",{children:"Backups"})]}),(0,a.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,a.jsx)(g,{size:20}),(0,a.jsx)("span",{children:"Console"})]}),(0,a.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,a.jsx)(j,{size:20}),(0,a.jsx)("span",{children:"Env"})]})]})]})}var y=t(34254),v=t(58526);function k({user:e,extraHeaderContent:s}){let[t,l]=r().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 z-50 shadow-slate-900/5",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.jsx)("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-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,a.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,a.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,a.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,a.jsx)("span",{children:(0,a.jsx)("b",{children:"Super User"})}),(0,a.jsx)(v.A,{size:20}),(0,a.jsx)("div",{className:"dropdown",children:(0,a.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,a.jsx)("div",{className:"ml-2",children:(0,a.jsx)(y.A,{})}),(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"})]})]})})}function b({children:e,head:s,user:t}){return(0,a.jsxs)(r().Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),s]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(f,{}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(k,{user:t}),(0,a.jsx)("div",{className:"flex-col items-start gap-6 px-4 sl:px-8 py-8 bg-slate-50 dark:bg-slate-900",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.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,a.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(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(54896)},2459:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).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"}]])},25294:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(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"}]])},6505:e=>{e.exports=function(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",l=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),r=s;e?.userId&&(r+=`user_${e.userId}_`),l&&(r+=`${l}_`),r+=t;let n=s;return e?.userId&&(n+=`user_${e.userId}_`),l&&(n+=`${l}_`),{keyCookieName:r,csrfCookieName:n+=a}}},77463:(e,s,t)=>{let{scryptSync:a,createDecipheriv:l}=t(55511),{Buffer:r}=t(79428);e.exports=({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,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 o=l("aes-192-cbc",a(n,i,c),r.alloc(16,0));try{let s=o.update(e,"hex","utf8");return s+=o.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},49407:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var a=t(8732);t(82015);var l=t(20883);function r(e){return(0,a.jsxs)(l.Html,{lang:"en",children:[(0,a.jsxs)(l.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)(l.Main,{}),(0,a.jsx)(l.NextScript,{})]})]})}},9455:(e,s)=>{var t;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4050.js b/dsql-app/.local_dist/server/chunks/4050.js index c987ceb..709f23b 100644 --- a/dsql-app/.local_dist/server/chunks/4050.js +++ b/dsql-app/.local_dist/server/chunks/4050.js @@ -1 +1 @@ -"use strict";exports.id=4050,exports.ids=[4050],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}}})},47670:(e,t,r)=>{let s=r(72583),n=r(16570);r(33364);let a=r(33364);r(27825);let o=r(51348),c=r(21339),i=r(20503),l=r(44900);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:S,update:D,encryptionKey:f,encryptionSalt:g,useLocal:h}){let E=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),y=h?l:E?o:c;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 s=E?await y(`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,[S]):await y({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,queryValues:[S]});if(s?.[0]&&!D)return null;if(s&&s[0]&&D)return await a({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,encryptionKey:f,encryptionSalt:g,identifierColumnName:_,identifierValue:S||""})}let m=Object.keys(d),L=[],O=[];for(let e=0;ee.fieldName==t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r||o?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;o?.encrypted&&(r=i({data:r,encryptionKey:f,encryptionSalt:g}),console.log("DSQL: Encrypted value =>",r)),o?.richText&&(r=s(r,n)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),L.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?O.push(String(r)):O.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(L.push("`date_created`"),O.push(Date())),d?.date_created_code||(L.push("`date_created_code`"),O.push(Date.now())),d?.date_updated||(L.push("`date_updated`"),O.push(Date())),d?.date_updated_code||(L.push("`date_updated_code`"),O.push(Date.now()));let A=`INSERT INTO \`${u}\` (${L.join(",")}) VALUES (${O.map(()=>"?").join(",")})`;return E?await y(A,O):await y({paradigm:t,database:r,queryString:A,queryValues:O})}e.exports=u},33364:(e,t,r)=>{let s=r(72583),n=r(16570),a=r(51348),o=r(21339),c=r(20503),i=r(44900);async function l({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:D,useLocal:f}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=f?i:g?a:o,E=Object.keys(u),y=[],m=[];for(let e=0;ee.fieldName===t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,n)),o?.encrypted&&(r=c({data:r,encryptionKey:S,encryptionSalt:D})),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),y.push(`\`${t}\`=?`),"number"==typeof r?m.push(String(r)):m.push(r)}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 L=`UPDATE ${l} SET ${y.join(",")} WHERE \`${p}\`=?`;return m.push(_),g?await h(L,m):await h({paradigm:t,database:r,queryString:L,queryValues:m})}e.exports=l},16570:e=>{e.exports={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"]}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,c=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("Encryption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let t=l.update(e,"utf8","hex");return t+=l.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),a=r(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(r,c).then(d).catch(p):o.query(r).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,t,r)=>{let s=r(9973),n=r(21580);async function a(...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:n()},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}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=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`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}}; \ No newline at end of file +"use strict";exports.id=4050,exports.ids=[4050],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}}})},47670:(e,t,r)=>{let s=r(72583),n=r(16570);r(33364);let a=r(33364);r(27825);let o=r(51348),c=r(21339),i=r(20503),l=r(44900);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:S,update:D,encryptionKey:f,encryptionSalt:g,useLocal:h}){let E=!!h||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),y=h?l:E?o:c;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 s=E?await y(`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,[S]):await y({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,queryValues:[S]});if(s?.[0]&&!D)return null;if(s&&s[0]&&D)return await a({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,encryptionKey:f,encryptionSalt:g,identifierColumnName:_,identifierValue:S||""})}let m=Object.keys(d),L=[],O=[];for(let e=0;ee.fieldName==t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r||o?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;o?.encrypted&&(r=i({data:r,encryptionKey:f,encryptionSalt:g}),console.log("DSQL: Encrypted value =>",r)),o?.richText&&(r=s(r,n)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),L.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?O.push(String(r)):O.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(L.push("`date_created`"),O.push(Date())),d?.date_created_code||(L.push("`date_created_code`"),O.push(Date.now())),d?.date_updated||(L.push("`date_updated`"),O.push(Date())),d?.date_updated_code||(L.push("`date_updated_code`"),O.push(Date.now()));let A=`INSERT INTO \`${u}\` (${L.join(",")}) VALUES (${O.map(()=>"?").join(",")})`;return E?await y(A,O):await y({paradigm:t,database:r,queryString:A,queryValues:O})}e.exports=u},33364:(e,t,r)=>{let s=r(72583),n=r(16570),a=r(51348),o=r(21339),c=r(20503),i=r(44900);async function l({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:D,useLocal:f}){if(!u||!Object.keys(u).length)return null;let g=!!f||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=f?i:g?a:o,E=Object.keys(u),y=[],m=[];for(let e=0;ee.fieldName===t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,n)),o?.encrypted&&(r=c({data:r,encryptionKey:S,encryptionSalt:D})),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),y.push(`\`${t}\`=?`),"number"==typeof r?m.push(String(r)):m.push(r)}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 L=`UPDATE ${l} SET ${y.join(",")} WHERE \`${p}\`=?`;return m.push(_),g?await h(L,m):await h({paradigm:t,database:r,queryString:L,queryValues:m})}e.exports=l},16570:e=>{e.exports={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"]}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,c=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("Encryption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let t=l.update(e,"utf8","hex");return t+=l.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),a=r(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(r,c).then(d).catch(p):o.query(r).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,t,r)=>{let s=r(9973),n=r(21580);async function a(...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:n()},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}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=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`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4385.js b/dsql-app/.local_dist/server/chunks/4385.js index 19d19af..39c5ff8 100644 --- a/dsql-app/.local_dist/server/chunks/4385.js +++ b/dsql-app/.local_dist/server/chunks/4385.js @@ -1,4 +1,4 @@ -"use strict";exports.id=4385,exports.ids=[4385],exports.modules={14385:(e,a,t)=>{let s=t(29021),r=t(59474),i=t(33873),l=t(5194),n=t(57638),o=t(20503),d=t(47670),u=t(86041);e.exports=async function({database:e,social_id:a,email:t,social_platform:c,payload:_,invitation:m,supEmail:p,additionalFields:g,useLocal:E}){try{let S=[a.toString(),c],f=await n({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:S,useLocal:E});if(f&&f[0])return await u({user:f[0],social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E});let y=t||p||null;if(!y)return{success:!1,payload:null,msg:"No Email Present"};let b=`SELECT * FROM users WHERE email='${y}'`,D=await n({database:e||"datasquirel",queryString:b,useLocal:E});if(D&&D[0])return{success:!1,payload:null,msg:"This Email is already taken"};let h=[y,c,a],R=await n({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:h,useLocal:E});if(R&&R[0])return await u({user:_,social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E});let A=o({data:a.toString()}),v={social_login:"1",verification_status:p?"0":"1",password:A};Object.keys(_).forEach(e=>{v[e]=_[e]});let L=await d({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:y,data:{...v,email:y},useLocal:E});if(!L?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.js' backend function =>",L),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.js' backend function"};{e||await l({userId:L.insertId,useLocal:E});let a=`SELECT * FROM users WHERE id='${L.insertId}'`,t=await n({database:e||"datasquirel",queryString:a,useLocal:E});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(p&&e?.match(/^datasquirel$/)){let e=o({data:JSON.stringify({id:L.insertId,email:p,dateCode:Date.now()})});r({to:p,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:s.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(e=>{})}let d=process.env.DSQL_STATIC_SERVER_DIR;if(!d)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-${L.insertId}`,a=i.join(d,`images/user-images/user-${L.insertId}`);s.mkdirSync(e),s.mkdirSync(a),s.writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await u({user:t[0],social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E})}}catch(e){return console.log("ERROR in 'handleSocialDb.js' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},86041:(e,a,t)=>{let s=t(44767),{ServerResponse:r}=t(81630),i=t(57638);async function l({user:e,social_platform:a,invitation:t,database:r,additionalFields:l,useLocal:n}){let o=[e.email,e.social_id,a],d=await i({database:r||"datasquirel",queryString:"SELECT * FROM users WHERE email=? AND social_id=? AND social_platform=?",queryValuesArray:o,useLocal:n});if(!d?.[0])return{success:!1,payload:null};let u=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),c={id:d[0].id,first_name:d[0].first_name,last_name:d[0].last_name,username:d[0].username,user_type:d[0].user_type,email:d[0].email,social_id:d[0].social_id,image:d[0].image,image_thumbnail:d[0].image_thumbnail,verification_status:d[0].verification_status,social_login:d[0].social_login,social_platform:d[0].social_platform,csrf_k:u,logged_in_status:!0,date:Date.now()};return l?.[0]&&l.forEach(e=>{c[e]=d[0][e]}),t&&(!r||r?.match(/^datasquirel$/))&&s({query:t,user:c,useLocal:n}),{success:!0,payload:c,csrf:u}}t(20503),t(31341),e.exports=l},44767:(e,a,t)=>{let s=t(48225),r=t(51348),i=t(47670),l=t(44900);e.exports=async function({query:e,user:a,useLocal:t}){try{let s=t?l:r,{invite:n,database_access:o,priviledge:d,email:u}=e,c=[n,u],_=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!_||!_[0])throw Error("No Invitation Found");let m=[n],p=await s("SELECT first_name,last_name,email FROM users WHERE id=?",m);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=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{i({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{let s=t(47795),r=t(51348),i=t(45356),l=t(47670),n=t(20503),o=t(44900);e.exports=async function({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",d=`dsql_user_${e}`,u=s.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=n({data:u}),_=`CREATE USER IF NOT EXISTS '${d}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await o(_):await i(_);let m="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",p=[d,c,e];a?await o(m,p):await r(m,p),await l({tableName:"mariadb_users",data:{user_id:e,username:d,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)}}},31341:e=>{e.exports=function(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=a;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let i=a;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:r,csrfCookieName:i+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},59474:(e,a,t)=>{let s=t(29021),r=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:a,text:t,html:i,alias:l}){let n;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(l?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let d=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${o}>`,s.sender=o,l&&(s["replyTo "]=o),s.to=e,s.subject=a,s.text=t,s.html=d,n=await r.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return n}},6061:(e,a,t)=>{let s=t(72835),r=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},48225:(e,a,t)=>{let s=t(29021),{IncomingMessage:r}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:r,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 r=`🚀 SERVER ERROR =========================== +"use strict";exports.id=4385,exports.ids=[4385],exports.modules={14385:(e,a,t)=>{let s=t(29021),r=t(59474),i=t(33873),l=t(5194),n=t(57638),o=t(20503),d=t(47670),u=t(86041);e.exports=async function({database:e,social_id:a,email:t,social_platform:c,payload:_,invitation:m,supEmail:p,additionalFields:g,useLocal:E}){try{let S=[a.toString(),c],f=await n({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:S,useLocal:E});if(f&&f[0])return await u({user:f[0],social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E});let y=t||p||null;if(!y)return{success:!1,payload:null,msg:"No Email Present"};let D=`SELECT * FROM users WHERE email='${y}'`,b=await n({database:e||"datasquirel",queryString:D,useLocal:E});if(b&&b[0])return{success:!1,payload:null,msg:"This Email is already taken"};let h=[y,c,a],R=await n({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:h,useLocal:E});if(R&&R[0])return await u({user:_,social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E});let A=o({data:a.toString()}),v={social_login:"1",verification_status:p?"0":"1",password:A};Object.keys(_).forEach(e=>{v[e]=_[e]});let L=await d({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:y,data:{...v,email:y},useLocal:E});if(!L?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.js' backend function =>",L),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.js' backend function"};{e||await l({userId:L.insertId,useLocal:E});let a=`SELECT * FROM users WHERE id='${L.insertId}'`,t=await n({database:e||"datasquirel",queryString:a,useLocal:E});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(p&&e?.match(/^datasquirel$/)){let e=o({data:JSON.stringify({id:L.insertId,email:p,dateCode:Date.now()})});r({to:p,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:s.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(e=>{})}let d=process.env.DSQL_STATIC_SERVER_DIR;if(!d)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-${L.insertId}`,a=i.join(d,`images/user-images/user-${L.insertId}`);s.mkdirSync(e),s.mkdirSync(a),s.writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await u({user:t[0],social_platform:c,invitation:m,database:e,additionalFields:g,useLocal:E})}}catch(e){return console.log("ERROR in 'handleSocialDb.js' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},86041:(e,a,t)=>{let s=t(44767),{ServerResponse:r}=t(81630),i=t(57638);async function l({user:e,social_platform:a,invitation:t,database:r,additionalFields:l,useLocal:n}){let o=[e.email,e.social_id,a],d=await i({database:r||"datasquirel",queryString:"SELECT * FROM users WHERE email=? AND social_id=? AND social_platform=?",queryValuesArray:o,useLocal:n});if(!d?.[0])return{success:!1,payload:null};let u=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),c={id:d[0].id,first_name:d[0].first_name,last_name:d[0].last_name,username:d[0].username,user_type:d[0].user_type,email:d[0].email,social_id:d[0].social_id,image:d[0].image,image_thumbnail:d[0].image_thumbnail,verification_status:d[0].verification_status,social_login:d[0].social_login,social_platform:d[0].social_platform,csrf_k:u,logged_in_status:!0,date:Date.now()};return l?.[0]&&l.forEach(e=>{c[e]=d[0][e]}),t&&(!r||r?.match(/^datasquirel$/))&&s({query:t,user:c,useLocal:n}),{success:!0,payload:c,csrf:u}}t(20503),t(31341),e.exports=l},44767:(e,a,t)=>{let s=t(48225),r=t(51348),i=t(47670),l=t(44900);e.exports=async function({query:e,user:a,useLocal:t}){try{let s=t?l:r,{invite:n,database_access:o,priviledge:d,email:u}=e,c=[n,u],_=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!_||!_[0])throw Error("No Invitation Found");let m=[n],p=await s("SELECT first_name,last_name,email FROM users WHERE id=?",m);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=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{i({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{let s=t(47795),r=t(51348),i=t(45356),l=t(47670),n=t(20503),o=t(44900);e.exports=async function({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",d=`dsql_user_${e}`,u=s.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=n({data:u}),_=`CREATE USER IF NOT EXISTS '${d}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await o(_):await i(_);let m="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",p=[d,c,e];a?await o(m,p):await r(m,p),await l({tableName:"mariadb_users",data:{user_id:e,username:d,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)}}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=a;e?.userId&&(i+=`user_${e.userId}_`),r&&(i+=`${r}_`),i+=t;let l=a;return e?.userId&&(l+=`user_${e.userId}_`),r&&(l+=`${r}_`),{keyCookieName:i,csrfCookieName:l+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},59474:(e,a,t)=>{let s=t(29021),r=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:a,text:t,html:i,alias:l}){let n;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(l?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let d=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${o}>`,s.sender=o,l&&(s["replyTo "]=o),s.to=e,s.subject=a,s.text=t,s.html=d,n=await r.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return n}},6061:(e,a,t)=>{let s=t(72835),r=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},48225:(e,a,t)=>{let s=t(29021),{IncomingMessage:r}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:r,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 r=`🚀 SERVER ERROR =========================== Error Message: ${a} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,a,t)=>{t(29021);let s=t(6061),r=t(48225),i=t(51348),l=t(21339),n=t(44900);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:o,useLocal:d}){let u;let c=!!t?.match(/^datasquirel$/),_=d?n:c?i:l;try{u=e&&a&&Array.isArray(a)&&a[0]?c?await _(e,a):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):c?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,a,t)=>{let{scryptSync:s,createDecipheriv:r}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:a,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=a||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(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=r("aes-192-cbc",s(l,n,o),i.alloc(16,0));try{let a=d.update(e,"hex","utf8");return a+=d.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},45356:(e,a,t)=>{let s=t(9973),r=t(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:r()}});e.exports=function(...e){try{return new Promise((a,t)=>{i.query(...e).then(e=>{i.end(),a(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),a({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)}}},57638:(e,a,t)=>{t(29021);let s=t(6061),r=t(48225),i=t(51348),l=t(21339),n=t(44900);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:o,useLocal:d}){let u;let c=!!d||!!t?.match(/^datasquirel$/),_=d?n:c?i:l;try{u=e&&a&&Array.isArray(a)&&a[0]?c?await _(e,a):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):c?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,a,t)=>{let{scryptSync:s,createDecipheriv:r}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:a,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=a||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(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=r("aes-192-cbc",s(l,n,o),i.alloc(16,0));try{let a=d.update(e,"hex","utf8");return a+=d.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},45356:(e,a,t)=>{let s=t(9973),r=t(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:r()}});e.exports=function(...e){try{return new Promise((a,t)=>{i.query(...e).then(e=>{i.end(),a(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),a({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/5264.js b/dsql-app/.local_dist/server/chunks/5264.js index 9204f18..6ab8a08 100644 --- a/dsql-app/.local_dist/server/chunks/5264.js +++ b/dsql-app/.local_dist/server/chunks/5264.js @@ -1,4 +1,4 @@ -"use strict";exports.id=5264,exports.ids=[5264],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}}})},6420:(e,r,s)=>{s(81630);let t=s(51348),n=s(72835),a=s(29021),o=s(31341);async function i(e,r,s,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let E=JSON.parse(u);if(!E.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${E.csrf_k}`)))return null;let S=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!S)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${S}/${E.csrf_k}`))return null;if(0==E.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${E.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return E?.date&&Date.now()-E.date>6048e5?null:E}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=t}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],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 n=`🚀 SERVER ERROR =========================== +"use strict";exports.id=5264,exports.ids=[5264],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}}})},6420:(e,r,s)=>{s(81630);let t=s(51348),n=s(72835),a=s(29021),o=s(31341);async function i(e,r,s,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let E=JSON.parse(u);if(!E.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${E.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${_}/${E.csrf_k}`))return null;if(0==E.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${E.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return E?.date&&Date.now()-E.date>6048e5?null:E}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=t}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],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 n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${s}`;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)}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({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,i=s||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("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,s)=>{let{scryptSync:t,createCipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||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(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},31819:(e,r,s)=>{let t=s(3444);async function n({username:e,host:r,grants:s,userId:n}){let a=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),a;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),a;if(!s)return console.log("No grants Array provided."),a;try{let o=await t(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(o?.[0]?.User){let a=await t(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return a}e.exports=n},46889:(e,r,s)=>{let t=s(33873);s(60818).config({path:t.resolve(__dirname,"../../../.env")});let n=s(47795),a=s(3444),o=s(16926),i=s(31819),l=s(20503),c=s(72835),u=process.env.DSQL_DB_HOST||"127.0.0.1";async function E({userId:e,mariadbUserHost:r,mariadbUser:s,sqlUserID:t}){let E=await o({query:"SELECT * FROM users"});E?.[0]||process.exit();for(let S=0;S",e.message)}}process.exit()}e.exports=E},16926:(e,r,s)=>{let t=s(29021),n=s(33873),a=s(9973),o=s(21580),i=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,charset:"utf8mb4",ssl:o()}});e.exports=async function({query:e,values:r,database:s}){let l;s&&(i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:s,charset:"utf8mb4",ssl:o()}}));try{l=e&&r?await i.query(e,r):await i.query(e),await i.end()}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(i.config()),t.appendFileSync(n.resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),l=null}return l?JSON.parse(JSON.stringify(l)):null}},3444:(e,r,s)=>{let t=s(16926);e.exports=async function(e){let r;try{r=await t({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),a=t({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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}}; \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({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,i=s||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("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,s)=>{let{scryptSync:t,createCipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({data:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||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(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},31819:(e,r,s)=>{let t=s(3444);async function n({username:e,host:r,grants:s,userId:n}){let a=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),a;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),a;if(!s)return console.log("No grants Array provided."),a;try{let o=await t(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(o?.[0]?.User){let a=await t(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return a}e.exports=n},46889:(e,r,s)=>{let t=s(33873);s(60818).config({path:t.resolve(__dirname,"../../../.env")});let n=s(47795),a=s(3444),o=s(16926),i=s(31819),l=s(20503),c=s(72835),u=process.env.DSQL_DB_HOST||"127.0.0.1";async function E({userId:e,mariadbUserHost:r,mariadbUser:s,sqlUserID:t}){let E=await o({query:"SELECT * FROM users"});E?.[0]||process.exit();for(let _=0;_",e.message)}}process.exit()}e.exports=E},16926:(e,r,s)=>{let t=s(29021),n=s(33873),a=s(9973),o=s(21580),i=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,charset:"utf8mb4",ssl:o()}});e.exports=async function({query:e,values:r,database:s}){let l;s&&(i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:s,charset:"utf8mb4",ssl:o()}}));try{l=e&&r?await i.query(e,r):await i.query(e),await i.end()}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(i.config()),t.appendFileSync(n.resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),l=null}return l?JSON.parse(JSON.stringify(l)):null}},3444:(e,r,s)=>{let t=s(16926);e.exports=async function(e){let r;try{r=await t({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),a=t({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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7070.js b/dsql-app/.local_dist/server/chunks/7070.js index dd55d14..b0c6956 100644 --- a/dsql-app/.local_dist/server/chunks/7070.js +++ b/dsql-app/.local_dist/server/chunks/7070.js @@ -1 +1 @@ -"use strict";exports.id=7070,exports.ids=[7070],exports.modules={58548:(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}){e?.delegated,e?.priviledges?.match(/Edit Tables/i),e?.priviledges?.match(/Delete Tables/i),e?.priviledges?.match(/Create Tables/i);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,{})}},36605:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),r=t(82015),n=t.n(r);t(63715);var i=t(86152),l=t(32415),c=t(66916),o=t(66918),d=t(23293);function x(e){let[s,t]=n().useState(!0),[r,x]=n().useState(0),[m,h]=n().useState(0);return s?(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:r?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{t(!0),(0,i.A)().then(()=>{h(e=>e+1),t(!1)})},children:[s&&(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:r&&r.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"})]})})}},20048:(e,s,t)=>{t(81630);let a=t(67216),r=t(77463),n=t(29021),i=t(6505);async function l(e,s,t,l){let{keyCookieName:c,csrfCookieName:o}=i();if(!e.cookies?.[c]?.match(/./))return null;let d=r({encryptedString:e.cookies[c]});if(!d)return null;let x=JSON.parse(d);if(!x.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${x.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${m}/${x.csrf_k}`))return null;if(0==x.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${x.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return x?.date&&Date.now()-x.date>6048e5?null:x}e.exports=l},86152:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(63715);async function r(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},72377:e=>{e.exports=function(e,s){return s?e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")&&"true":e?.id&&"1"==String(e?.id)&&"true"}},95222:(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);t(64699);var c=t(93353),o=t(52070),d=t(34637),x=t(83158),m=t(25294),h=t(92441),u=t(29743),p=t(10643),j=t(10321),g=t(72377),f=t.n(g);function v({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"})]}),f()(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"})})]})]})]})}t(20681);var y=t(49538);function b({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(54896);var S=t(36605);function N({children:e,head:s,user:t,productionEnvironment:r,extraHeaderContent:i,aceEditor:o}){return i||(i=(0,a.jsx)(S.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)(v,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(b,{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(63715),t(28133)},6505:e=>{e.exports=function(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=s;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let n=s;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:r,csrfCookieName:n+=a}}},77463:(e,s,t)=>{let{scryptSync:a,createDecipheriv:r}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,c=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=r("aes-192-cbc",a(i,l,c),n.alloc(16,0));try{let s=o.update(e,"hex","utf8");return s+=o.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},67216:(e,s,t)=>{let a=t(9973),r=t(31976),n=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:r()}});async function i(...e){try{let s=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,s,t)=>{let a=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!a.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var a=t(8732);t(82015);var r=t(20883);function n(e){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=7070,exports.ids=[7070],exports.modules={58548:(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}){e?.delegated,e?.priviledges?.match(/Edit Tables/i),e?.priviledges?.match(/Delete Tables/i),e?.priviledges?.match(/Create Tables/i);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,{})}},36605:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),r=t(82015),n=t.n(r);t(63715);var i=t(86152),l=t(32415),c=t(66916),o=t(66918),d=t(23293);function x(e){let[s,t]=n().useState(!0),[r,x]=n().useState(0),[m,h]=n().useState(0);return s?(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:r?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{t(!0),(0,i.A)().then(()=>{h(e=>e+1),t(!1)})},children:[s&&(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:r&&r.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"})]})})}},20048:(e,s,t)=>{t(81630);let a=t(67216),r=t(77463),n=t(29021),i=t(6505);async function l(e,s,t,l){let{keyCookieName:c,csrfCookieName:o}=i();if(!e.cookies?.[c]?.match(/./))return null;let d=r({encryptedString:e.cookies[c]});if(!d)return null;let x=JSON.parse(d);if(!x.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${x.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${m}/${x.csrf_k}`))return null;if(0==x.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${x.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return x?.date&&Date.now()-x.date>6048e5?null:x}e.exports=l},86152:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(63715);async function r(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},72377:e=>{e.exports=function(e,s){return s?e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")&&"true":e?.id&&"1"==String(e?.id)&&"true"}},95222:(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);t(64699);var c=t(93353),o=t(52070),d=t(34637),x=t(83158),m=t(25294),h=t(92441),u=t(29743),p=t(10643),j=t(10321),g=t(72377),f=t.n(g);function v({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"})]}),f()(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"})})]})]})]})}t(20681);var _=t(49538);function y({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)(_.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(54896);var S=t(36605);function N({children:e,head:s,user:t,productionEnvironment:r,extraHeaderContent:i,aceEditor:o}){return i||(i=(0,a.jsx)(S.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)(v,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(y,{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(63715),t(28133)},6505:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=s;e?.userId&&(n+=`user_${e.userId}_`),r&&(n+=`${r}_`),n+=t;let i=s;return e?.userId&&(i+=`user_${e.userId}_`),r&&(i+=`${r}_`),{keyCookieName:n,csrfCookieName:i+=a}}},77463:(e,s,t)=>{let{scryptSync:a,createDecipheriv:r}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,c=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=r("aes-192-cbc",a(i,l,c),n.alloc(16,0));try{let s=o.update(e,"hex","utf8");return s+=o.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},67216:(e,s,t)=>{let a=t(9973),r=t(31976),n=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:r()}});async function i(...e){try{let s=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,s,t)=>{let a=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!a.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var a=t(8732);t(82015);var r=t(20883);function n(e){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/8540.js b/dsql-app/.local_dist/server/chunks/8540.js index 3d56b40..2218b36 100644 --- a/dsql-app/.local_dist/server/chunks/8540.js +++ b/dsql-app/.local_dist/server/chunks/8540.js @@ -1,4 +1,4 @@ -"use strict";exports.id=8540,exports.ids=[8540],exports.modules={77619:(e,t,r)=>{let a=r(29021),l=r(72835);e.exports=({key:e,database:t,table:r,user_id:n})=>{if(!e||!n)return null;try{let s=process.env.DSQL_API_KEYS_PATH;if(!s)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=l({encryptedString:e}),o=JSON.parse(i||""),u=a.existsSync(`${s}/${o.sign}`);if(String(o.user_id)!==String(n)||!u)return null;if(!o.target_database)return o;if(!t&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(t));if(c&&!o.target_table)return o;if(c&&!r&&o.target_table)return null;if(o.target_table?.split(",").includes(String(r)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,t,r)=>{let a=r(51348),l=r(21339),n=r(44900);async function s({dbContext:e,paradigm:t,dbFullName:r,tableName:s,identifierColumnName:i,identifierValue:o,useLocal:u}){try{let c=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),d=u?n:c?a:l,p=`DELETE FROM ${s} WHERE \`${i}\`=?`;return c?await d(p,[o]):await d({paradigm:t,queryString:p,database:r,queryValues:[o]})}catch(e){return null}}e.exports=s},8238:(e,t,r)=>{r(29021);let a=r(44900),l=r(94709),n=r(96064),s=r(48225),i=r(47670),o=r(33364),u=r(64122),c=r(6061),d=r(33872);async function p({dbFullName:e,query:t,readOnly:r,dbSchema:p,queryValuesArray:m,tableName:g,local:f}){let y,b,_;if(p)try{let e=g||("string"==typeof t?null:t?t?.table:null);if(!e)throw Error("No table name provided");_=p.tables.filter(t=>t?.tableName===e)[0]}catch(e){}try{if("string"==typeof t){let s=d(t);if(r&&s.match(/^alter|^delete|information_schema|databases|^create/i))throw Error("Wrong Input!");if(f){console.log("Using Local ...");let e=await a(s,m);y=_?c({unparsedResults:e,tableSchema:_}):e}else y=r?await n({queryString:s,queryValuesArray:m?.map(e=>String(e)),database:e,tableSchema:_}):await l({queryString:s,queryValuesArray:m?.map(e=>String(e)),database:e,tableSchema:_})}else if("object"==typeof t){let{data:r,action:a,table:l,identifierColumnName:n,identifierValue:s,update:c,duplicateColumnName:d,duplicateColumnValue:p}=t;switch(a.toLowerCase()){case"insert":y=await i({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,update:c,duplicateColumnName:d,duplicateColumnValue:p,tableSchema:_}),y?.insertId||(b=Error("Couldn't insert data"));break;case"update":y=await o({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,identifierColumnName:n,identifierValue:s,tableSchema:_});break;case"delete":y=await u({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,identifierColumnName:n,identifierValue:s,tableSchema:_});break;default:y=null}}}catch(e){s({component:"functions/backend/runQuery",message:e.message}),y=null,e=e.message}return{result:y,error:b}}e.exports=p},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},94709:(e,t,r)=>{let a=r(21339),l=r(6061),n=r(48225);e.exports=async function({queryString:e,database:t,tableSchema:r,queryValuesArray:s,local:i}){let o;try{o=await a({paradigm:"Full Access",database:t,queryString:e,queryValues:s})}catch(e){return n({component:"fullAccessDbHandler",message:e.message}),e.message}if(o&&r){let e=o;return await l({unparsedResults:e,tableSchema:r})}return o||null}},6061:(e,t,r)=>{let a=r(72835),l=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}},48225:(e,t,r)=>{let a=r(29021),{IncomingMessage:l}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:l,req:n}){let s=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],l=r||a||t||n.socket.remoteAddress;if(!l)return null;return String(l)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== +"use strict";exports.id=8540,exports.ids=[8540],exports.modules={77619:(e,t,r)=>{let a=r(29021),l=r(72835);e.exports=({key:e,database:t,table:r,user_id:n})=>{if(!e||!n)return null;try{let s=process.env.DSQL_API_KEYS_PATH;if(!s)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=l({encryptedString:e}),o=JSON.parse(i||""),u=a.existsSync(`${s}/${o.sign}`);if(String(o.user_id)!==String(n)||!u)return null;if(!o.target_database)return o;if(!t&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(t));if(c&&!o.target_table)return o;if(c&&!r&&o.target_table)return null;if(o.target_table?.split(",").includes(String(r)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,t,r)=>{let a=r(51348),l=r(21339),n=r(44900);async function s({dbContext:e,paradigm:t,dbFullName:r,tableName:s,identifierColumnName:i,identifierValue:o,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),d=u?n:c?a:l,p=`DELETE FROM ${s} WHERE \`${i}\`=?`;return c?await d(p,[o]):await d({paradigm:t,queryString:p,database:r,queryValues:[o]})}catch(e){return null}}e.exports=s},8238:(e,t,r)=>{r(29021),r(44900);let a=r(94709),l=r(96064),n=r(48225),s=r(47670),i=r(33364),o=r(64122);r(6061);let u=r(33872);async function c({dbFullName:e,query:t,readOnly:r,dbSchema:c,queryValuesArray:d,tableName:p,local:m}){let g,f,y;if(c)try{let e=p||("string"==typeof t?null:t?t?.table:null);if(!e)throw Error("No table name provided");y=c.tables.filter(t=>t?.tableName===e)[0]}catch(e){}try{if("string"==typeof t){let n=u(t);if(r&&n.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");g=r?await l({queryString:n,queryValuesArray:d?.map(e=>String(e)),database:e,tableSchema:y,useLocal:m}):await a({queryString:n,queryValuesArray:d?.map(e=>String(e)),database:e,tableSchema:y,local:m})}else if("object"==typeof t){let{data:r,action:a,table:l,identifierColumnName:n,identifierValue:u,update:c,duplicateColumnName:d,duplicateColumnValue:p}=t;switch(a.toLowerCase()){case"insert":g=await s({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,update:c,duplicateColumnName:d,duplicateColumnValue:p,tableSchema:y,useLocal:m}),g?.insertId||(f=Error("Couldn't insert data"));break;case"update":g=await i({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,identifierColumnName:n,identifierValue:u,tableSchema:y,useLocal:m});break;case"delete":g=await o({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,identifierColumnName:n,identifierValue:u,tableSchema:y,useLocal:m});break;default:g=null}}}catch(e){n({component:"functions/backend/runQuery",message:e.message}),g=null,e=e.message}return{result:g,error:f}}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},94709:(e,t,r)=>{let a=r(21339),l=r(44900),n=r(6061),s=r(48225);e.exports=async function({queryString:e,database:t,tableSchema:r,queryValuesArray:i,local:o}){let u;try{u=o?await l(e,i):await a({paradigm:"Full Access",database:t,queryString:e,queryValues:i})}catch(e){return s({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await n({unparsedResults:e,tableSchema:r})}return u||null}},6061:(e,t,r)=>{let a=r(72835),l=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}},48225:(e,t,r)=>{let a=r(29021),{IncomingMessage:l}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:l,req:n}){let s=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],l=r||a||t||n.socket.remoteAddress;if(!l)return null;return String(l)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${s.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},96064:(e,t,r)=>{r(29021);let a=r(48225),l=r(6061),n=r(21339);e.exports=async function({queryString:e,database:t,queryValuesArray:r,tableSchema:s}){let i;try{i=await n({paradigm:"Read Only",database:t,queryString:e,queryValues:r})}catch(e){return a({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!i)return null;{let e=i;return await l({unparsedResults:e,tableSchema:s})}}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:l}=r(55511),{Buffer:n}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=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(!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=l("aes-192-cbc",a(s,i,o),n.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},33872:(e,t,r)=>{r(55591),r(81630),e.exports=function(e){return e.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim()}}}; \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},96064:(e,t,r)=>{r(29021);let a=r(48225),l=r(6061),n=r(21339),s=r(44900);e.exports=async function({queryString:e,database:t,queryValuesArray:r,tableSchema:i,useLocal:o}){let u;try{u=o?await s(e,r):await n({paradigm:"Read Only",database:t,queryString:e,queryValues:r})}catch(e){return a({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await l({unparsedResults:e,tableSchema:i})}}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:l}=r(55511),{Buffer:n}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=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(!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=l("aes-192-cbc",a(s,i,o),n.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},33872:(e,t,r)=>{r(55591),r(81630),e.exports=function(e){return e.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim()}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8842.js b/dsql-app/.local_dist/server/chunks/8842.js index 87c4489..50bdca3 100644 --- a/dsql-app/.local_dist/server/chunks/8842.js +++ b/dsql-app/.local_dist/server/chunks/8842.js @@ -1 +1 @@ -"use strict";exports.id=8842,exports.ids=[8842],exports.modules={30469:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),l=a(82015),i=a.n(l),r=a(32415),n=a(83147),d=a(63715);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),i=document.createElement("a");i.href=a,i.style.display="none",i.download=`${l.db_slug}-${s.tableName}-${Date.now()}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i)}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]=i().useState(!1),[d,o]=i().useState(!0),u=i().useRef(null);return i().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}n.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})]})}},29766:(e,t,a)=>{a.d(t,{A:()=>x});var s=a(8732),l=a(82015),i=a.n(l),r=a(41836),n=a(95939),d=a(43656),c=a(51548),o=a(32415),u=a(2817),m=a(63715);function p({database:e,table:t,setOpenPopover:a,dbSchemaData:l,query:r}){let[n,d]=i().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:n,setOpen:d,children:(0,s.jsx)(h,{database:e,table:t,dbSchemaData:l,query:r})})]})}function h({database:e,table:t,query:a,dbSchemaData:l}){let[r,n]=i().useState(l),[u,p]=i().useState("Push"),[h,x]=i().useState(r?.[0]),[f,b]=i().useState(h?.tables),[g,j]=i().useState(f?.[0]),[N,y]=i().useState(!1),[w,v]=i().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 i=e.target,r=i.paradigm?.value,n=i.database?.value,d=i.table?.value,c={paradigm:r,src:{db:a.db_slug,table:s.tableName},dst:{db:n,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=>{p(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),b(t.tables),j(t.tables?.[0]))}}),(0,s.jsx)(c.A,{selectOptions:f.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=f.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]=i().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)(p,{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)(n.A,{})})})}a(27825)},87663:(e,t,a)=>{a.a(e,async(e,s)=>{try{let h;a.d(t,{A:()=>p});var l=a(8732),i=a(82015),r=a.n(i),n=a(98842),d=a(51548),c=a(13737),o=a(63715),u=a(32415),m=e([n]);function p({data:e}){let{table:t,entries:s,activeEntries:i,setActiveEntries:m,confirmedDelegetedUser:p,database:x,targetField:f,searchTerm:b}=r().useContext(n.TableEntriesContext);a(94327),p?.delegated,p?.priviledges?.match(/Edit Tables/i),p?.priviledges?.match(/Delete Tables/i),p?.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),i&&m(null),!e?.toString().match(/./)){setTimeout(()=>{m&&m(s||[]),j(!1)},500);return}window.clearTimeout(h);let a=t?.fields.filter(e=>e.fieldName===f?.current),l=a&&a[0]&&a[0].dataType?.match(/int/i)||f?.current?.match(/^id$/)?"equal":"like";h=setTimeout(()=>{j(!1),(0,o.A)(`/api/queryEntriesSearchTerm?db=${x?.db_full_name}&table=${t?.tableName}&field=${f?.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(),b?.current&&v(b.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=>{f&&(f.current=e.target.value)},title:"Select Field",defaultValue:f?.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(/./)&&b?b.current=t.value:b&&(b.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"})})})]}),b?.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:['"',b.current,'"']})]})})]})}n=(m.then?(await m)():m)[0],s()}catch(e){s(e)}})},74511:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>j});var l=a(8732),i=a(82015),r=a.n(i),n=a(98842),d=a(46437),c=a(58548),o=a(94010),u=a(34486),m=a(86571),p=a(65241),h=a(59621),x=a(32415);a(63715),a(27825);var f=a(30469),b=a(29766),g=e([n,o,u,h]);function j(e){let{user:t,database:s,table:i,dbSchemaData:x,setTargetEntry:g,richTextEditors:j,jsonTextEditors:y,query:w,confirmedDelegetedUser:v,activeEntries:T,entriesCount:S,setActiveEntries:E}=r().useContext(n.TableEntriesContext),A=a(94327);return v?.delegated,v?.priviledges?.match(/Edit Tables/i),v?.priviledges?.match(/Delete Tables/i),v?.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:[i.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,l.jsx)(o.A,{slugText:i.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,l.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,l.jsxs)("a",{href:`/admin/${t?.id}/databases/${s.db_slug}/tables/${i.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)(f.A,{database:s,table:i}),(0,l.jsx)(b.A,{database:s,table:i,dbSchemaData:x,query:w})]})]}),(0,l.jsx)(c.A,{confirmedDelegetedUser:w?.delegated,user:t})]}),s.active_clone?(0,l.jsx)(m.A,{database:s,user:t}):(0,l.jsx)(l.Fragment,{}),s.remote_connected?(0,l.jsx)(h.p,{database:s}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(p.A,{table:i,database:s,user:t}),(0,l.jsx)(u.A,{user:t,entries:T,database:s,table:i,setTargetEntry:g,dbSchemaData:x,richTextEditors:j,dataTypes:A,query:w,confirmedDelegetedUser:v,jsonTextEditors:y,search:!0}),S>20&&(0,l.jsx)(N,{activeEntries:T,setActiveEntries:E,database:s,table:i,entriesCount:S})]})}function N({activeEntries:e,setActiveEntries:t,database:a,table:s,entriesCount:i}){r().useContext(n.TableEntriesContext);let d=r().useRef(),c=r().useRef(1);return 20*Number(c.current)>=i?(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"})})}[n,o,u,h]=g.then?(await g)():g,s()}catch(e){s(e)}})},34486:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var l=a(8732),i=a(82015),r=a.n(i),n=a(89579),d=a(87663),c=a(32415),o=a(30469),u=a(29766),m=a(2833),p=e([d]);function h({user:e,entries:t,database:a,table:s,setTargetEntry:i,dbSchemaData:p,richTextEditors:h,jsonTextEditors:x,dataTypes:f,title:b,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:T}=a;return(0,l.jsx)(r().Fragment,{children:(0,l.jsxs)("section",{className:"paper gray gray-bg",children:[b&&(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:b}),(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:p,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)(n.A,{user:e,database:a,table:s,dbSchemaData:p,richTextEditors:h,dataTypes:f,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]&&b&&(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=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},89579:(e,t,a)=>{a.d(t,{A:()=>g});var s=a(8732),l=a(82015),i=a.n(l),r=a(64030),n=a(63715),d=a(86152),c=a(39897),o=a(32415),u=a(81897),m=a(27825),p=a.n(m),h=a(63014),x=a(95939),f=a(41836);function b({user:e,table:t,entry:a,url:l,query:r}){let[n,d]=i().useState(!1),c=i().useRef(null);return(0,s.jsx)("div",{className:"relative z-[1000]",children:(0,s.jsx)(f.Popover,{isOpen:n,onClickOutside:()=>d(!1),containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,s.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,s.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(a)).then(()=>{window.alert("Post Copied"),d(!1)})},children:"Copy Object"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let a=(0,h.A)({paradigm:"JavaScript",table:t,query:r,user:e});navigator.clipboard.writeText(a||"").then(()=>{window.alert("JavaScript Type Definition Copied"),d(!1)})},children:"Copy JS Type Definition"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let a=(0,h.A)({paradigm:"TypeScript",table:t,query:r,user:e});navigator.clipboard.writeText(a||"").then(()=>{window.alert("TypeScript Type Definition Copied"),d(!1)})},children:"Copy TS Type Definition"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("a",{href:l,className:"button plain-text justify-start py-3",children:(0,s.jsx)("span",{children:"View Entry"})})]})}),children:(0,s.jsx)("button",{onClick:()=>{d(!n)},ref:c,className:"ghost p-2",children:(0,s.jsx)(x.A,{})})})})}function g({user:e,database:t,table:a,dbSchemaData:l,richTextEditors:m,jsonTextEditors:h,dataTypes:x,entry:f,entryPage:g,confirmedDelegetedUser:j,query:N}){let y=a.fields.filter(e=>e.fieldName&&!e.fieldName.match(r.A)),w=a.fields.find(e=>"uuid"===e.fieldName),v=j?.delegated;j?.priviledges?.match(/Edit Tables/i),j?.priviledges?.match(/Delete Tables/i),j?.priviledges?.match(/Create Tables/i),j?.priviledges?.match(/Edit Entries/i);let T=j?.priviledges?.match(/Delete Entries/i);w&&y.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),y.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),y.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),y.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),y.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),y.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),y.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),y.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});let[S,E]=i().useState(!1),[A,_]=i().useState(!0),[C,$]=i().useState(f),[F,D]=i().useState(!1);i().useRef(null);let k=i().useRef([]),[R,O]=i().useState(`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/${C.id}`),I=`${t.db_slug}-${a.tableName}-${C.id}-submit-button`;return(0,s.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,s.jsx)("a",{href:R,onClick:e=>{let t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,s.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:e=>{let t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(R,"__blank"):window.location.href=R)},children:[(0,s.jsxs)("span",{children:["Entry #",C.id]}),(0,s.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!v||v&&T)&&(0,s.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(S?" pointer-events-none opacity-40":""),onClick:e=>{window.confirm(`Delete Entry #${C.id}?`)&&(E(!0),(0,n.A)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:t.db_full_name,tableName:a.tableName,entryId:C.id,dbSlug:t.db_slug,dbId:t.id,delegated:N?.delegated,confirmedDelegetedUser:j}},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(window.alert(e.msg),setTimeout(()=>{E(!1)},500))}))},children:"Delete Entry"}),!g&&(0,s.jsxs)(i().Fragment,{children:[(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:e=>{A?_(!1):_(!0)},children:A?(0,s.jsx)("span",{children:"Expand"}):(0,s.jsx)("span",{children:"Collapse"})})]}),(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)("div",{className:"button ghost px-0",onClick:s=>{let l=p().cloneDeep(f);delete l.date_created,delete l.date_created_code,delete l.date_created_timestamp,delete l.date_updated,delete l.date_updated_code,delete l.date_updated_timestamp,delete l.id,delete l.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(l)),window.location.href=`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/add-entry?duplicate=true&id=${f.id}`},children:(0,s.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)(b,{table:a,user:e,entry:f,query:N,url:R})]})]})}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:g?{}:{maxHeight:A?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:e=>{e.preventDefault(),E(!0);let s={},l=e.target;y.forEach(e=>{if(!e.fieldName||!l[e.fieldName])return;let t="string"!=typeof l[e.fieldName].value,a="number"!=typeof l[e.fieldName].value;(t||a||l[e.fieldName].value)&&(l[e.fieldName]?.dataset.default||(s[e.fieldName]=l[e.fieldName].value))}),k.current[0]&&k.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(s[e.fieldName]=e.ref.current.getContent())}),h.current[0]&&h.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(s[e.fieldName]=e.ref.current.getValue())}),(0,n.A)("/api/updateTableEntry",{method:"post",body:{dbFullName:t.db_full_name,dbSlug:t.db_slug,dbId:t.id,tableName:a.tableName,entryId:C.id,payload:s,tableSchema:a,delegated:N?.delegated,confirmedDelegetedUser:j}},!0).then(e=>{e.success?(0,n.A)(`/api/refreshEntry?table=${a.tableName}&db=${t.db_full_name}&id=${C.id}&schema=${JSON.stringify(a)}`).then(e=>{e.success&&($(e.entry),setTimeout(()=>{E(!1)},500))}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{E(!1)},500))})},onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&window.confirm("Update this Form?")&&document.getElementById(I)?.click()},children:[S&&(0,s.jsx)(o.A,{}),(A&&!g?y.slice(0,3):y).map((e,t)=>{let a=x.filter(t=>t.name===e.dataType?.replace(/\d|\(|\)/g,""));return(0,s.jsx)(u.A,{fieldObject:e,dataTypeSchema:a[0],richTextEditors:m,currentRichTextEditorForms:k,entry:C,query:N,entryPage:g,confirmedDelegetedUser:j,jsonTextEditors:h,formButtonId:I},t+1)}),(0,s.jsx)("button",{type:"submit",className:S?" pointer-events-none opacity-40":"",id:I,children:"Update Entry"})]}),!g&&(0,s.jsx)(c.A,{collapse:A,setCollapse:_})]})}},43656:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l({radioValues:e,name:t,onChangeHandler:a,setAlert:l,flexRow:i,labelColor:r,baseText:n,smallText:d,className:c}){try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(c||""),children:e.map((e,i)=>{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"+(n?" 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")+(n?" text-base":d?" text-sm":" text-lg"),children:o})]},i+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(82015)},51548:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),l=a(58526);function i({selectOptions:e,name:t,onChangeHandler:a,required:i,setAlert:r,title:n,defaultValue:d,info:c,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,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[n&&(0,s.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:i,onChange:e=>{r&&r(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:d||void 0,children:e.map((e,t)=>{let{payload:a,title:l}=e;return(0,s.jsx)("option",{value:a,selected:!!e.default,children:l},t+1)})}),(0,s.jsx)(l.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,s.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,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.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,s.jsx)("span",{children:c})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}a(82015)},95939:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},98842:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableEntriesContext:()=>S,default:()=>w,getServerSideProps:()=>v});var l=a(8732),i=a(82015),r=a.n(i),n=a(20048),d=a.n(n),c=a(95222),o=a(74511),u=a(64098),m=a(90378),p=a.n(m),h=a(31651),x=a.n(h),f=a(22373),b=a.n(f),g=a(67216),j=a.n(g),N=a(11169),y=e([o,u]);[o,u]=y.then?(await y)():y;let T=a(29021),S=r().createContext({});function w({user:e,database:t,table:a,dbSchemaData:s,entries:i,query:n,confirmedDelegetedUser:d,entriesCount:m}){let p=`${a.tableFullName} Table Entries | Datasquirel`,h=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:p}),(0,l.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,f]=r().useState(null),[b,g]=r().useState(i),j=r().useRef("title"),y=r().useRef(null),w=r().useRef([]),v=r().useRef([]);return(0,l.jsx)(c.A,{head:h,user:e,extraHeaderContent:(0,l.jsx)(u.A,{database:t,query:n,confirmedDelegetedUser:d,user:e}),children:(0,l.jsxs)(S.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,entries:i,targetEntry:x,setTargetEntry:f,richTextEditors:w,jsonTextEditors:v,query:n,confirmedDelegetedUser:d,activeEntries:b,setActiveEntries:g,targetField:j,searchTerm:y,entriesCount:m},children:[(0,l.jsx)(o.A,{}),(0,l.jsx)(N.A,{snug:!0})]})})}async function v({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,l=await x()({request:e,user:s,databaseSlug:t,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:i}=l,r=await j()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${a.single}'`);if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let n=JSON.parse(T.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),d=(n.filter(e=>e.dbFullName===r[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],c=await p()({database:r[0].db_full_name,queryString:`SELECT * FROM \`${d.tableName}\` ORDER BY id DESC LIMIT 20`,tableSchema:d}),o=await p()({database:r[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${d.tableName}`,tableSchema:d});return{props:{user:s,database:r[0],table:d,dbSchemaData:n,entries:c,query:a,confirmedDelegetedUser:l,entriesCount:o?.[0]?.count||0}}}catch(e){return b()({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=8842,exports.ids=[8842],exports.modules={30469:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),l=a(82015),i=a.n(l),r=a(32415),n=a(83147),d=a(63715);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),i=document.createElement("a");i.href=a,i.style.display="none",i.download=`${l.db_slug}-${s.tableName}-${Date.now()}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i)}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]=i().useState(!1),[d,o]=i().useState(!0),u=i().useRef(null);return i().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}n.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})]})}},29766:(e,t,a)=>{a.d(t,{A:()=>x});var s=a(8732),l=a(82015),i=a.n(l),r=a(41836),n=a(95939),d=a(43656),c=a(51548),o=a(32415),u=a(2817),m=a(63715);function p({database:e,table:t,setOpenPopover:a,dbSchemaData:l,query:r}){let[n,d]=i().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:n,setOpen:d,children:(0,s.jsx)(h,{database:e,table:t,dbSchemaData:l,query:r})})]})}function h({database:e,table:t,query:a,dbSchemaData:l}){let[r,n]=i().useState(l),[u,p]=i().useState("Push"),[h,x]=i().useState(r?.[0]),[f,b]=i().useState(h?.tables),[g,j]=i().useState(f?.[0]),[N,y]=i().useState(!1),[w,v]=i().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 i=e.target,r=i.paradigm?.value,n=i.database?.value,d=i.table?.value,c={paradigm:r,src:{db:a.db_slug,table:s.tableName},dst:{db:n,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=>{p(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),b(t.tables),j(t.tables?.[0]))}}),(0,s.jsx)(c.A,{selectOptions:f.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=f.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]=i().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)(p,{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)(n.A,{})})})}a(27825)},87663:(e,t,a)=>{a.a(e,async(e,s)=>{try{let h;a.d(t,{A:()=>p});var l=a(8732),i=a(82015),r=a.n(i),n=a(98842),d=a(51548),c=a(13737),o=a(63715),u=a(32415),m=e([n]);function p({data:e}){let{table:t,entries:s,activeEntries:i,setActiveEntries:m,confirmedDelegetedUser:p,database:x,targetField:f,searchTerm:b}=r().useContext(n.TableEntriesContext);a(94327),p?.delegated,p?.priviledges?.match(/Edit Tables/i),p?.priviledges?.match(/Delete Tables/i),p?.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),i&&m(null),!e?.toString().match(/./)){setTimeout(()=>{m&&m(s||[]),j(!1)},500);return}window.clearTimeout(h);let a=t?.fields.filter(e=>e.fieldName===f?.current),l=a&&a[0]&&a[0].dataType?.match(/int/i)||f?.current?.match(/^id$/)?"equal":"like";h=setTimeout(()=>{j(!1),(0,o.A)(`/api/queryEntriesSearchTerm?db=${x?.db_full_name}&table=${t?.tableName}&field=${f?.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(),b?.current&&v(b.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=>{f&&(f.current=e.target.value)},title:"Select Field",defaultValue:f?.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(/./)&&b?b.current=t.value:b&&(b.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"})})})]}),b?.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:['"',b.current,'"']})]})})]})}n=(m.then?(await m)():m)[0],s()}catch(e){s(e)}})},74511:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>j});var l=a(8732),i=a(82015),r=a.n(i),n=a(98842),d=a(46437),c=a(58548),o=a(94010),u=a(34486),m=a(86571),p=a(65241),h=a(59621),x=a(32415);a(63715),a(27825);var f=a(30469),b=a(29766),g=e([n,o,u,h]);function j(e){let{user:t,database:s,table:i,dbSchemaData:x,setTargetEntry:g,richTextEditors:j,jsonTextEditors:y,query:w,confirmedDelegetedUser:v,activeEntries:T,entriesCount:S,setActiveEntries:E}=r().useContext(n.TableEntriesContext),A=a(94327);return v?.delegated,v?.priviledges?.match(/Edit Tables/i),v?.priviledges?.match(/Delete Tables/i),v?.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:[i.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,l.jsx)(o.A,{slugText:i.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,l.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,l.jsxs)("a",{href:`/admin/${t?.id}/databases/${s.db_slug}/tables/${i.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)(f.A,{database:s,table:i}),(0,l.jsx)(b.A,{database:s,table:i,dbSchemaData:x,query:w})]})]}),(0,l.jsx)(c.A,{confirmedDelegetedUser:w?.delegated,user:t})]}),s.active_clone?(0,l.jsx)(m.A,{database:s,user:t}):(0,l.jsx)(l.Fragment,{}),s.remote_connected?(0,l.jsx)(h.p,{database:s}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(p.A,{table:i,database:s,user:t}),(0,l.jsx)(u.A,{user:t,entries:T,database:s,table:i,setTargetEntry:g,dbSchemaData:x,richTextEditors:j,dataTypes:A,query:w,confirmedDelegetedUser:v,jsonTextEditors:y,search:!0}),S>20&&(0,l.jsx)(N,{activeEntries:T,setActiveEntries:E,database:s,table:i,entriesCount:S})]})}function N({activeEntries:e,setActiveEntries:t,database:a,table:s,entriesCount:i}){r().useContext(n.TableEntriesContext);let d=r().useRef(),c=r().useRef(1);return 20*Number(c.current)>=i?(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"})})}[n,o,u,h]=g.then?(await g)():g,s()}catch(e){s(e)}})},34486:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var l=a(8732),i=a(82015),r=a.n(i),n=a(89579),d=a(87663),c=a(32415),o=a(30469),u=a(29766),m=a(2833),p=e([d]);function h({user:e,entries:t,database:a,table:s,setTargetEntry:i,dbSchemaData:p,richTextEditors:h,jsonTextEditors:x,dataTypes:f,title:b,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:T}=a;return(0,l.jsx)(r().Fragment,{children:(0,l.jsxs)("section",{className:"paper gray gray-bg",children:[b&&(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:b}),(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:p,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)(n.A,{user:e,database:a,table:s,dbSchemaData:p,richTextEditors:h,dataTypes:f,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]&&b&&(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=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},89579:(e,t,a)=>{a.d(t,{A:()=>g});var s=a(8732),l=a(82015),i=a.n(l),r=a(64030),n=a(63715),d=a(86152),c=a(39897),o=a(32415),u=a(81897),m=a(27825),p=a.n(m),h=a(63014),x=a(95939),f=a(41836);function b({user:e,table:t,entry:a,url:l,query:r}){let[n,d]=i().useState(!1),c=i().useRef(null);return(0,s.jsx)("div",{className:"relative z-[1000]",children:(0,s.jsx)(f.Popover,{isOpen:n,onClickOutside:()=>d(!1),containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,s.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,s.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(a)).then(()=>{window.alert("Post Copied"),d(!1)})},children:"Copy Object"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let a=(0,h.A)({paradigm:"JavaScript",table:t,query:r,user:e});navigator.clipboard.writeText(a||"").then(()=>{window.alert("JavaScript Type Definition Copied"),d(!1)})},children:"Copy JS Type Definition"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let a=(0,h.A)({paradigm:"TypeScript",table:t,query:r,user:e});navigator.clipboard.writeText(a||"").then(()=>{window.alert("TypeScript Type Definition Copied"),d(!1)})},children:"Copy TS Type Definition"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("a",{href:l,className:"button plain-text justify-start py-3",children:(0,s.jsx)("span",{children:"View Entry"})})]})}),children:(0,s.jsx)("button",{onClick:()=>{d(!n)},ref:c,className:"ghost p-2",children:(0,s.jsx)(x.A,{})})})})}function g({user:e,database:t,table:a,dbSchemaData:l,richTextEditors:m,jsonTextEditors:h,dataTypes:x,entry:f,entryPage:g,confirmedDelegetedUser:j,query:N}){let y=a.fields.filter(e=>e.fieldName&&!e.fieldName.match(r.A)),w=a.fields.find(e=>"uuid"===e.fieldName),v=j?.delegated;j?.priviledges?.match(/Edit Tables/i),j?.priviledges?.match(/Delete Tables/i),j?.priviledges?.match(/Create Tables/i),j?.priviledges?.match(/Edit Entries/i);let T=j?.priviledges?.match(/Delete Entries/i);w&&y.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),y.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),y.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),y.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),y.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),y.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),y.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),y.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});let[S,E]=i().useState(!1),[A,_]=i().useState(!0),[C,F]=i().useState(f),[$,D]=i().useState(!1);i().useRef(null);let k=i().useRef([]),[R,O]=i().useState(`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/${C.id}`),I=`${t.db_slug}-${a.tableName}-${C.id}-submit-button`;return(0,s.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,s.jsx)("a",{href:R,onClick:e=>{let t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,s.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:e=>{let t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(R,"__blank"):window.location.href=R)},children:[(0,s.jsxs)("span",{children:["Entry #",C.id]}),(0,s.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!v||v&&T)&&(0,s.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(S?" pointer-events-none opacity-40":""),onClick:e=>{window.confirm(`Delete Entry #${C.id}?`)&&(E(!0),(0,n.A)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:t.db_full_name,tableName:a.tableName,entryId:C.id,dbSlug:t.db_slug,dbId:t.id,delegated:N?.delegated,confirmedDelegetedUser:j}},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(window.alert(e.msg),setTimeout(()=>{E(!1)},500))}))},children:"Delete Entry"}),!g&&(0,s.jsxs)(i().Fragment,{children:[(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:e=>{A?_(!1):_(!0)},children:A?(0,s.jsx)("span",{children:"Expand"}):(0,s.jsx)("span",{children:"Collapse"})})]}),(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)("div",{className:"button ghost px-0",onClick:s=>{let l=p().cloneDeep(f);delete l.date_created,delete l.date_created_code,delete l.date_created_timestamp,delete l.date_updated,delete l.date_updated_code,delete l.date_updated_timestamp,delete l.id,delete l.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(l)),window.location.href=`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/add-entry?duplicate=true&id=${f.id}`},children:(0,s.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)(b,{table:a,user:e,entry:f,query:N,url:R})]})]})}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:g?{}:{maxHeight:A?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:e=>{e.preventDefault(),E(!0);let s={},l=e.target;y.forEach(e=>{if(!e.fieldName||!l[e.fieldName])return;let t="string"!=typeof l[e.fieldName].value,a="number"!=typeof l[e.fieldName].value;(t||a||l[e.fieldName].value)&&(l[e.fieldName]?.dataset.default||(s[e.fieldName]=l[e.fieldName].value))}),k.current[0]&&k.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(s[e.fieldName]=e.ref.current.getContent())}),h.current[0]&&h.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(s[e.fieldName]=e.ref.current.getValue())}),(0,n.A)("/api/updateTableEntry",{method:"post",body:{dbFullName:t.db_full_name,dbSlug:t.db_slug,dbId:t.id,tableName:a.tableName,entryId:C.id,payload:s,tableSchema:a,delegated:N?.delegated,confirmedDelegetedUser:j}},!0).then(e=>{e.success?(0,n.A)("/api/refreshEntry",{method:"POST",body:{table:a.tableName,db:t.db_full_name,id:C.id,schema:JSON.stringify(a)}}).then(e=>{e.success&&(F(e.entry),setTimeout(()=>{E(!1)},500))}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{E(!1)},500))})},onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&window.confirm("Update this Form?")&&document.getElementById(I)?.click()},children:[S&&(0,s.jsx)(o.A,{}),(A&&!g?y.slice(0,3):y).map((e,t)=>{let a=x.filter(t=>t.name===e.dataType?.replace(/\d|\(|\)/g,""));return(0,s.jsx)(u.A,{fieldObject:e,dataTypeSchema:a[0],richTextEditors:m,currentRichTextEditorForms:k,entry:C,query:N,entryPage:g,confirmedDelegetedUser:j,jsonTextEditors:h,formButtonId:I},t+1)}),(0,s.jsx)("button",{type:"submit",className:S?" pointer-events-none opacity-40":"",id:I,children:"Update Entry"})]}),!g&&(0,s.jsx)(c.A,{collapse:A,setCollapse:_})]})}},43656:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l({radioValues:e,name:t,onChangeHandler:a,setAlert:l,flexRow:i,labelColor:r,baseText:n,smallText:d,className:c}){try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(c||""),children:e.map((e,i)=>{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"+(n?" 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")+(n?" text-base":d?" text-sm":" text-lg"),children:o})]},i+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(82015)},51548:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),l=a(58526);function i({selectOptions:e,name:t,onChangeHandler:a,required:i,setAlert:r,title:n,defaultValue:d,info:c,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,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[n&&(0,s.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:i,onChange:e=>{r&&r(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:d||void 0,children:e.map((e,t)=>{let{payload:a,title:l}=e;return(0,s.jsx)("option",{value:a,selected:!!e.default,children:l},t+1)})}),(0,s.jsx)(l.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,s.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,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.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,s.jsx)("span",{children:c})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}a(82015)},95939:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},98842:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableEntriesContext:()=>S,default:()=>w,getServerSideProps:()=>v});var l=a(8732),i=a(82015),r=a.n(i),n=a(20048),d=a.n(n),c=a(95222),o=a(74511),u=a(64098),m=a(90378),p=a.n(m),h=a(31651),x=a.n(h),f=a(22373),b=a.n(f),g=a(67216),j=a.n(g),N=a(11169),y=e([o,u]);[o,u]=y.then?(await y)():y;let T=a(29021),S=r().createContext({});function w({user:e,database:t,table:a,dbSchemaData:s,entries:i,query:n,confirmedDelegetedUser:d,entriesCount:m}){let p=`${a.tableFullName} Table Entries | Datasquirel`,h=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:p}),(0,l.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,f]=r().useState(null),[b,g]=r().useState(i),j=r().useRef("title"),y=r().useRef(null),w=r().useRef([]),v=r().useRef([]);return(0,l.jsx)(c.A,{head:h,user:e,extraHeaderContent:(0,l.jsx)(u.A,{database:t,query:n,confirmedDelegetedUser:d,user:e}),children:(0,l.jsxs)(S.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,entries:i,targetEntry:x,setTargetEntry:f,richTextEditors:w,jsonTextEditors:v,query:n,confirmedDelegetedUser:d,activeEntries:b,setActiveEntries:g,targetField:j,searchTerm:y,entriesCount:m},children:[(0,l.jsx)(o.A,{}),(0,l.jsx)(N.A,{snug:!0})]})})}async function v({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,l=await x()({request:e,user:s,databaseSlug:t,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:i}=l,r=await j()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${a.single}'`);if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let n=JSON.parse(T.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),d=(n.filter(e=>e.dbFullName===r[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],c=await p()({database:r[0].db_full_name,queryString:`SELECT * FROM \`${d.tableName}\` ORDER BY id DESC LIMIT 20`,tableSchema:d}),o=await p()({database:r[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${d.tableName}`,tableSchema:d});return{props:{user:s,database:r[0],table:d,dbSchemaData:n,entries:c,query:a,confirmedDelegetedUser:l,entriesCount:o?.[0]?.count||0}}}catch(e){return b()({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/9732.js b/dsql-app/.local_dist/server/chunks/9732.js index 587f10e..74835cc 100644 --- a/dsql-app/.local_dist/server/chunks/9732.js +++ b/dsql-app/.local_dist/server/chunks/9732.js @@ -1 +1 @@ -"use strict";exports.id=9732,exports.ids=[9732],exports.modules={81897:(e,t,a)=>{a.d(t,{A:()=>S});var l=a(8732),r=a(82015),s=a.n(r),d=a(32415),n=a(40373),i=a(1976),o=a.n(i);function c({editor:e,rootElement:t}){return(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper text-sm mt-2 flex-wrap bg-white p-10 rounded max-w-2xl w-full",children:(0,l.jsxs)("form",{onSubmit:a=>{a.preventDefault();let l=a.target["embed-text-area"].value;if(!l?.match(/./))return alert("Please Enter HTML Text to continue.");e.insertContent(l),document.body.removeChild(t)},className:"w-full flex flex-col items-stretch gap-2",children:[(0,l.jsx)("h3",{className:"m-0 text-center text-lg",children:"Enter HTML code"}),(0,l.jsx)("textarea",{name:"embed-text-area",id:"embed-text-area",cols:30,rows:10,placeholder:"Paste Code here ..."}),(0,l.jsx)("button",{type:"submit",children:"Embed"})]})})}function u({editor:e}){navigator.clipboard.writeText(e?.getContent()||"").then(()=>{alert("Html Copied to Clipboard!")})}var m=a(58150);function p({editor:e,rootElement:t}){e.getContent();let a=s().useRef(),r=s().useRef(),[d,n]=s().useState(null);return(0,l.jsxs)("div",{onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&r.current?.click()},children:[(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper relative flex flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative",children:[(0,l.jsx)("div",{ref:a,className:"w-full h-[80vh] text-[18px]"}),(0,l.jsx)("button",{className:"absolute bottom-4 right-4",onClick:a=>{if(d){let a=d.getValue();e.setContent(a),setTimeout(()=>{document.body.removeChild(t)},200)}},ref:r,children:"Save"})]})}),(0,l.jsx)("button",{className:"absolute top-4 right-8 rounded-full white",onClick:()=>{try{document.body.removeChild(t)}catch(e){}},style:{width:"40px",height:"40px",padding:"0",zIndex:"12039800000"},children:(0,l.jsx)(m.A,{})})]})}function f({editor:e}){let t=document.createElement("div");t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.zIndex="123000000000000000",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.top="0",t.style.left="0",document.body.append(t),t.onclick=e=>{e.target.closest(".embed-popup-form-content-wrapper")||document.body.removeChild(t)},e&&o().createRoot(t).render((0,l.jsx)(p,{editor:e,rootElement:t}))}function x({editor:e}){let t=document.createElement("div");t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.zIndex="123000000000000000",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.top="0",t.style.left="0",document.body.append(t),t.onclick=e=>{if(e.target.closest(".embed-popup-form-content-wrapper")){console.log("Still In Form");return}document.body.removeChild(t)},e&&o().createRoot(t).render((0,l.jsx)(c,{editor:e,rootElement:t}))}a(90317);var h=a(17855);function y({fieldObject:e,dataTypeSchema:t,richTextEditors:a,entry:r,currentRichTextEditorForms:i,entryPage:o,formButtonId:c}){let[m,p]=s().useState(!1),y=s().useRef(),b=s().useRef();return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(h.A,{}),(0,l.jsx)("span",{children:e.fieldName})]}),(0,l.jsxs)("div",{ref:y,id:e.fieldName,className:"w-full p-0 sm:p-4 flex-col items-stretch bg-slate-100 relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},children:[!m&&(0,l.jsx)(d.A,{}),m&&(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(n.Editor,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:(e,t)=>{b.current=t},initialValue:e.defaultValue||(r&&e.fieldName&&r[e.fieldName]?r[e.fieldName]:""),init:{height:o?400:300,width:"100%",convert_urls:!1,menubar:!1,plugins:["advlist","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount"],toolbar:"undo redo | blocks | bold italic forecolor | link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat help | editCode embedCode copyCode",placeholder:"Type something ...",document_base_url:"/",content_css:e.cssFiles||void 0,setup:e=>{!function({editor:e,formButtonId:t}){e.addShortcut("meta+13","Save Entry.",()=>{window.confirm("Update this Form?")&&t&&document.getElementById(t)?.click()}),e.addShortcut("meta+shift+e","Edit Code.",()=>{f({editor:e})}),e.addShortcut("meta+shift+d","Embed Code.",()=>{x({editor:e})}),e.addShortcut("meta+shift+c","Copy Code.",()=>{u({editor:e})}),e.ui.registry.addButton("editCode",{icon:"edit-block",onAction:t=>f({editor:e}),tooltip:"Edit HTML Code"}),e.ui.registry.addButton("embedCode",{icon:"sourcecode",onAction:t=>x({editor:e}),tooltip:"Embed Code"}),e.ui.registry.addButton("copyCode",{icon:"copy",onAction:t=>u({editor:e}),tooltip:"Copy HTML"})}({editor:e,formButtonId:c})}}})})]})]})}a(63715),a(84759);var b=a(82544);let g=(0,b.A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),N=(0,b.A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);function v({fieldObject:e,typeFinal:t,isExpanded:a,setHeight:r,COLLAPSED_HEIGHT:s,EXPANDED_HEIGHT:d}){return(0,l.jsxs)("div",{className:"gap-2 w-full",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(h.A,{}),(0,l.jsx)("span",{children:e.fieldName})]}),(0,l.jsx)("div",{className:"px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2",children:(0,l.jsx)("span",{children:t})}),(0,l.jsxs)("div",{className:"ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex",onClick:e=>{a?r(s):r(d)},children:[(0,l.jsx)("span",{className:"font-semibold text-sm",children:a?"Collapse":"Expand"}),a?(0,l.jsx)(g,{size:18,className:"mt-[-1px]"}):(0,l.jsx)(N,{size:18,className:"mt-[-1px]"})]})]})}function j({fieldObject:e,dataTypeSchema:t,entry:a,entryPage:r,jsonTextEditors:d,type:n}){try{let[t,a]=s().useState(0),[r,d]=s().useState(300),i=s().useRef();return s().useRef(),(0,l.jsx)(s().Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsx)(v,{fieldObject:e,isExpanded:300!==r,setHeight:d,typeFinal:n||"json",COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,l.jsx)(_,{height:r,jsonEditorRef:i})]})})}catch(e){return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)("span",{children:"Editor Load Error"})})}}function _({height:e,jsonEditorRef:t}){return(0,l.jsx)("div",{className:"w-full p-0 sm:p-4 flex-col relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20 overflow-hidden",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px",height:`${e}px`},children:(0,l.jsx)("div",{ref:t,className:"w-full text-[18px] h-full"})})}function S({fieldObject:e,dataTypeSchema:t,richTextEditors:a,jsonTextEditors:r,entry:d,currentRichTextEditorForms:n,confirmedDelegetedUser:i,query:o,entryPage:c,formButtonId:u}){i?.delegated,i?.priviledges?.match(/Edit Tables/i),i?.priviledges?.match(/Delete Tables/i),i?.priviledges?.match(/Create Tables/i),i?.priviledges?.match(/Edit Entries/i),i?.priviledges?.match(/Delete Entries/i);let m=function({fieldObject:e,dataTypeSchema:t,elementRef:a,entry:r}){let s;let d=e=>{let t=e.target.closest("form");if(!t)return;let a=t?.querySelector("#slug");a&&(a.value=e.target.value.toLowerCase().replace(/ /g,"-").replace(/[^a-z\-0-9]/g,""))};return e.defaultField?s=(0,l.jsx)("input",{ref:a,type:"text",name:"def_field_"+e.fieldName,id:"def_field_"+e.fieldName,placeholder:e.fieldName,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},readOnly:!0,"data-default":"true"}):(e.dataType?.match(/varchar/i)&&(s=(0,l.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,maxLength:e.dataType?.match(/\d+/)?.[0]?parseInt(e.dataType?.match(/\d+/)?.[0]||""):void 0,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},onChange:t=>{e.fieldName?.match(/^title$/)&&d(t)}})),e.dataType?.match(/int$/i)&&(s=(0,l.jsx)("input",{ref:a,type:"number",name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,max:t.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),e.dataType?.match(/text$/i)&&(s=(0,l.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},rows:10,onChange:e=>{}})),e.fieldName?.match(/password|^pass$|^key$/i)&&(s=(0,l.jsxs)("div",{className:"w-full relative",children:[(0,l.jsx)("input",{ref:a,type:"password",name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,max:t.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName]?r[e.fieldName]:e.defaultValue?e.defaultValue:"",onChange:e=>{}}),(0,l.jsx)("span",{className:"absolute right-4 cursor-pointer",onClick:e=>{let t=e.target.closest("div").querySelector("input");"password"===t.type?(t.type="text",e.target.innerText="Hide"):(t.type="password",e.target.innerText="Reveal")},children:"Reveal"})]})),s||(s=(0,l.jsx)("input",{ref:a,type:"text",name:e.fieldName,id:e.fieldName,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),s)}({fieldObject:e,dataTypeSchema:t,elementRef:s().useRef(),entry:d});if(e.dataType?.match(/text$/i)&&e.richText&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&e.richText)return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(y,{fieldObject:e,dataTypeSchema:t,richTextEditors:a,currentRichTextEditorForms:n,entry:d,entryPage:c,formButtonId:u})});let p=e.json||e.yaml||e.html||e.css||e.javascript||e.shell;return e.dataType?.match(/text$/i)&&p&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&p?(0,l.jsx)(j,{fieldObject:e,dataTypeSchema:t,entry:d,entryPage:c,jsonTextEditors:r,type:e.json?"json":e.yaml?"yaml":e.html?"html":e.css?"css":e.javascript?"javascript":e.shell?"shell":"json"}):(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full"+(e.defaultField?" opacity-50":""),children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(h.A,{})}),(0,l.jsx)("span",{children:e.fieldName}),e.defaultField&&(0,l.jsx)("span",{className:"bg-white dark:bg-slate-900 text-primary dark:text-slate-300 font-semibold text-xs px-2 py-0.5 rounded-xs",children:"Default Field"})]}),m]})}},84759:(e,t,a)=>{a.d(t,{A:()=>l});function l({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:l="javascript",entry:r,jsonTextEditors:s,editorRef:d,readOnly:n,initialContent:i,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let c=ace.edit(e.current);c.setOptions({mode:"ace/mode/"+l,value:i||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==l)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==l?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:n,...o}),d&&t?.fieldName&&(s?.current.push({fieldName:t.fieldName,ref:d}),d.current=c);try{ace.require("ace/ext/beautify").beautify(c.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},65241:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(8732),r=a(82015),s=a.n(r);function d({table:e,database:t,user:a,activeDbClone:r}){let d=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===t.db_full_name;return d?(0,l.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,l.jsx)("a",{href:`/admin/${a?.id}/databases/${d}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,l.jsxs)("span",{children:["this current database(",(0,l.jsx)("b",{children:t.db_name}),")."]}):(0,l.jsxs)(s().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${d}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:d})}),(0,l.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,l.jsx)(s().Fragment,{})}},31651:(e,t,a)=>{a(81630);let l=a(77463);e.exports=async function({request:e,databaseSlug:t,user:a,query:r}){try{let s=a.id,d=null;if(!r?.delegated)return{dbUserId:s};let n=r.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${n}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=l({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((d=JSON.parse(a)).databaseSlug===t)return{dbUserId:s=d.rootUserId,rootUserId:d.rootUserId,rootUserName:d.rootUserName,rootUserEmail:d.rootUserEmail,rootUserImage:d.rootUserImage,databaseFullName:d.databaseFullName,databaseSlug:d.databaseSlug,allowedTables:d.allowedTables,priviledges:d.priviledges,database:d.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:s}}catch(e){return null}}},17855:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,a)=>{let l=a(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let s=0;s",t.message),e}}},90378:(e,t,a)=>{a(29021);let l=a(89545),r=a(22373),s=a(67216),d=a(1231),n=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:i,useLocal:o}){let c;let u=!!a?.match(/^datasquirel$/),m=o?n:u?s:d;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&i)try{let e=c;return await l({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,t,a)=>{let l=a(29021);a(33873);let r=a(9973),s=a(31976),d=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:s()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:n}){try{return new Promise((i,o)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){d.end(),i(JSON.parse(JSON.stringify(e)))}function m(e){d.end(),i({error:e.message,queryStringGenerated:a,queryValuesGenerated:n,sql:e.sql})}d=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:s()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:s()}}),n&&Array.isArray(n)&&n[0]?d.query(a,n).then(u).catch(m):d.query(a).then(u).catch(m)}catch(e){l.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let l=a(9973),r=a(31976);async function s(...e){let t=l({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:r()},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}}}e.exports=s}}; \ No newline at end of file +"use strict";exports.id=9732,exports.ids=[9732],exports.modules={81897:(e,t,a)=>{a.d(t,{A:()=>S});var l=a(8732),r=a(82015),s=a.n(r),d=a(32415),n=a(40373),i=a(1976),o=a.n(i);function c({editor:e,rootElement:t}){return(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper text-sm mt-2 flex-wrap bg-white p-10 rounded max-w-2xl w-full",children:(0,l.jsxs)("form",{onSubmit:a=>{a.preventDefault();let l=a.target["embed-text-area"].value;if(!l?.match(/./))return alert("Please Enter HTML Text to continue.");e.insertContent(l),document.body.removeChild(t)},className:"w-full flex flex-col items-stretch gap-2",children:[(0,l.jsx)("h3",{className:"m-0 text-center text-lg",children:"Enter HTML code"}),(0,l.jsx)("textarea",{name:"embed-text-area",id:"embed-text-area",cols:30,rows:10,placeholder:"Paste Code here ..."}),(0,l.jsx)("button",{type:"submit",children:"Embed"})]})})}function u({editor:e}){navigator.clipboard.writeText(e?.getContent()||"").then(()=>{alert("Html Copied to Clipboard!")})}var m=a(58150);function p({editor:e,rootElement:t}){e.getContent();let a=s().useRef(),r=s().useRef(),[d,n]=s().useState(null);return(0,l.jsxs)("div",{onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&r.current?.click()},children:[(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper relative flex flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative",children:[(0,l.jsx)("div",{ref:a,className:"w-full h-[80vh] text-[18px]"}),(0,l.jsx)("button",{className:"absolute bottom-4 right-4",onClick:a=>{if(d){let a=d.getValue();e.setContent(a),setTimeout(()=>{document.body.removeChild(t)},200)}},ref:r,children:"Save"})]})}),(0,l.jsx)("button",{className:"absolute top-4 right-8 rounded-full white",onClick:()=>{try{document.body.removeChild(t)}catch(e){}},style:{width:"40px",height:"40px",padding:"0",zIndex:"12039800000"},children:(0,l.jsx)(m.A,{})})]})}function f({editor:e}){let t=document.createElement("div");t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.zIndex="123000000000000000",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.top="0",t.style.left="0",document.body.append(t),t.onclick=e=>{e.target.closest(".embed-popup-form-content-wrapper")||document.body.removeChild(t)},e&&o().createRoot(t).render((0,l.jsx)(p,{editor:e,rootElement:t}))}function x({editor:e}){let t=document.createElement("div");t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.zIndex="123000000000000000",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.top="0",t.style.left="0",document.body.append(t),t.onclick=e=>{if(e.target.closest(".embed-popup-form-content-wrapper")){console.log("Still In Form");return}document.body.removeChild(t)},e&&o().createRoot(t).render((0,l.jsx)(c,{editor:e,rootElement:t}))}a(90317);var h=a(17855);function y({fieldObject:e,dataTypeSchema:t,richTextEditors:a,entry:r,currentRichTextEditorForms:i,entryPage:o,formButtonId:c}){let[m,p]=s().useState(!1),y=s().useRef(),b=s().useRef();return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(h.A,{}),(0,l.jsx)("span",{children:e.fieldName})]}),(0,l.jsxs)("div",{ref:y,id:e.fieldName,className:"w-full p-0 sm:p-4 flex-col items-stretch bg-slate-100 relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},children:[!m&&(0,l.jsx)(d.A,{}),m&&(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(n.Editor,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:(e,t)=>{b.current=t},initialValue:e.defaultValue||(r&&e.fieldName&&r[e.fieldName]?r[e.fieldName]:""),init:{height:o?400:300,width:"100%",convert_urls:!1,menubar:!1,plugins:["advlist","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount"],toolbar:"undo redo | blocks | bold italic forecolor | link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat help | editCode embedCode copyCode",placeholder:"Type something ...",document_base_url:"/",content_css:e.cssFiles||void 0,setup:e=>{!function({editor:e,formButtonId:t}){e.addShortcut("meta+13","Save Entry.",()=>{window.confirm("Update this Form?")&&t&&document.getElementById(t)?.click()}),e.addShortcut("meta+shift+e","Edit Code.",()=>{f({editor:e})}),e.addShortcut("meta+shift+d","Embed Code.",()=>{x({editor:e})}),e.addShortcut("meta+shift+c","Copy Code.",()=>{u({editor:e})}),e.ui.registry.addButton("editCode",{icon:"edit-block",onAction:t=>f({editor:e}),tooltip:"Edit HTML Code"}),e.ui.registry.addButton("embedCode",{icon:"sourcecode",onAction:t=>x({editor:e}),tooltip:"Embed Code"}),e.ui.registry.addButton("copyCode",{icon:"copy",onAction:t=>u({editor:e}),tooltip:"Copy HTML"})}({editor:e,formButtonId:c})}}})})]})]})}a(63715),a(84759);var b=a(82544);let g=(0,b.A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),N=(0,b.A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);function v({fieldObject:e,typeFinal:t,isExpanded:a,setHeight:r,COLLAPSED_HEIGHT:s,EXPANDED_HEIGHT:d}){return(0,l.jsxs)("div",{className:"gap-2 w-full",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(h.A,{}),(0,l.jsx)("span",{children:e.fieldName})]}),(0,l.jsx)("div",{className:"px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2",children:(0,l.jsx)("span",{children:t})}),(0,l.jsxs)("div",{className:"ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex",onClick:e=>{a?r(s):r(d)},children:[(0,l.jsx)("span",{className:"font-semibold text-sm",children:a?"Collapse":"Expand"}),a?(0,l.jsx)(g,{size:18,className:"mt-[-1px]"}):(0,l.jsx)(N,{size:18,className:"mt-[-1px]"})]})]})}function j({fieldObject:e,dataTypeSchema:t,entry:a,entryPage:r,jsonTextEditors:d,type:n}){try{let[t,a]=s().useState(0),[r,d]=s().useState(300),i=s().useRef();return s().useRef(),(0,l.jsx)(s().Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsx)(v,{fieldObject:e,isExpanded:300!==r,setHeight:d,typeFinal:n||"json",COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,l.jsx)(_,{height:r,jsonEditorRef:i})]})})}catch(e){return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)("span",{children:"Editor Load Error"})})}}function _({height:e,jsonEditorRef:t}){return(0,l.jsx)("div",{className:"w-full p-0 sm:p-4 flex-col relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20 overflow-hidden",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px",height:`${e}px`},children:(0,l.jsx)("div",{ref:t,className:"w-full text-[18px] h-full"})})}function S({fieldObject:e,dataTypeSchema:t,richTextEditors:a,jsonTextEditors:r,entry:d,currentRichTextEditorForms:n,confirmedDelegetedUser:i,query:o,entryPage:c,formButtonId:u}){i?.delegated,i?.priviledges?.match(/Edit Tables/i),i?.priviledges?.match(/Delete Tables/i),i?.priviledges?.match(/Create Tables/i),i?.priviledges?.match(/Edit Entries/i),i?.priviledges?.match(/Delete Entries/i);let m=function({fieldObject:e,dataTypeSchema:t,elementRef:a,entry:r}){let s;let d=e=>{let t=e.target.closest("form");if(!t)return;let a=t?.querySelector("#slug");a&&(a.value=e.target.value.toLowerCase().replace(/ /g,"-").replace(/[^a-z\-0-9]/g,""))};return e.defaultField?s=(0,l.jsx)("input",{ref:a,type:"text",name:"def_field_"+e.fieldName,id:"def_field_"+e.fieldName,placeholder:e.fieldName,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},readOnly:!0,"data-default":"true"}):(e.dataType?.match(/varchar/i)&&(s=(0,l.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,maxLength:e.dataType?.match(/\d+/)?.[0]?parseInt(e.dataType?.match(/\d+/)?.[0]||""):void 0,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},onChange:t=>{e.fieldName?.match(/^title$/)&&d(t)}})),e.dataType?.match(/int$/i)&&(s=(0,l.jsx)("input",{ref:a,type:"number",name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,max:t.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),e.dataType?.match(/text$/i)&&(s=(0,l.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},rows:10,onChange:e=>{}})),e.fieldName?.match(/password|^pass$|^key$/i)&&(s=(0,l.jsxs)("div",{className:"w-full relative",children:[(0,l.jsx)("input",{ref:a,type:"password",name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,max:t.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName]?r[e.fieldName]:e.defaultValue?e.defaultValue:"",onChange:e=>{}}),(0,l.jsx)("span",{className:"absolute right-4 cursor-pointer",onClick:e=>{let t=e.target.closest("div").querySelector("input");"password"===t.type?(t.type="text",e.target.innerText="Hide"):(t.type="password",e.target.innerText="Reveal")},children:"Reveal"})]})),s||(s=(0,l.jsx)("input",{ref:a,type:"text",name:e.fieldName,id:e.fieldName,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),s)}({fieldObject:e,dataTypeSchema:t,elementRef:s().useRef(),entry:d});if(e.dataType?.match(/text$/i)&&e.richText&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&e.richText)return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(y,{fieldObject:e,dataTypeSchema:t,richTextEditors:a,currentRichTextEditorForms:n,entry:d,entryPage:c,formButtonId:u})});let p=e.json||e.yaml||e.html||e.css||e.javascript||e.shell;return e.dataType?.match(/text$/i)&&p&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&p?(0,l.jsx)(j,{fieldObject:e,dataTypeSchema:t,entry:d,entryPage:c,jsonTextEditors:r,type:e.json?"json":e.yaml?"yaml":e.html?"html":e.css?"css":e.javascript?"javascript":e.shell?"shell":"json"}):(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full"+(e.defaultField?" opacity-50":""),children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(h.A,{})}),(0,l.jsx)("span",{children:e.fieldName}),e.defaultField&&(0,l.jsx)("span",{className:"bg-white dark:bg-slate-900 text-primary dark:text-slate-300 font-semibold text-xs px-2 py-0.5 rounded-xs",children:"Default Field"})]}),m]})}},84759:(e,t,a)=>{a.d(t,{A:()=>l});function l({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:l="javascript",entry:r,jsonTextEditors:s,editorRef:d,readOnly:n,initialContent:i,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let c=ace.edit(e.current);c.setOptions({mode:"ace/mode/"+l,value:i||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==l)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==l?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:n,...o}),d&&t?.fieldName&&(s?.current.push({fieldName:t.fieldName,ref:d}),d.current=c);try{ace.require("ace/ext/beautify").beautify(c.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},65241:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(8732),r=a(82015),s=a.n(r);function d({table:e,database:t,user:a,activeDbClone:r}){let d=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===t.db_full_name;return d?(0,l.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,l.jsx)("a",{href:`/admin/${a?.id}/databases/${d}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,l.jsxs)("span",{children:["this current database(",(0,l.jsx)("b",{children:t.db_name}),")."]}):(0,l.jsxs)(s().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${d}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:d})}),(0,l.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,l.jsx)(s().Fragment,{})}},31651:(e,t,a)=>{a(81630);let l=a(77463);e.exports=async function({request:e,databaseSlug:t,user:a,query:r}){try{let s=a.id,d=null;if(!r?.delegated)return{dbUserId:s};let n=r.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${n}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=l({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((d=JSON.parse(a)).databaseSlug===t)return{dbUserId:s=d.rootUserId,rootUserId:d.rootUserId,rootUserName:d.rootUserName,rootUserEmail:d.rootUserEmail,rootUserImage:d.rootUserImage,databaseFullName:d.databaseFullName,databaseSlug:d.databaseSlug,allowedTables:d.allowedTables,priviledges:d.priviledges,database:d.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:s}}catch(e){return null}}},17855:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,a)=>{let l=a(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let s=0;s",t.message),e}}},90378:(e,t,a)=>{a(29021);let l=a(89545),r=a(22373),s=a(67216),d=a(1231),n=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:i,useLocal:o}){let c;let u=!!o||!!a?.match(/^datasquirel$/),m=o?n:u?s:d;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&i)try{let e=c;return await l({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,t,a)=>{let l=a(29021);a(33873);let r=a(9973),s=a(31976),d=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:s()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:n}){try{return new Promise((i,o)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){d.end(),i(JSON.parse(JSON.stringify(e)))}function m(e){d.end(),i({error:e.message,queryStringGenerated:a,queryValuesGenerated:n,sql:e.sql})}d=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:s()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:s()}}),n&&Array.isArray(n)&&n[0]?d.query(a,n).then(u).catch(m):d.query(a).then(u).catch(m)}catch(e){l.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let l=a(9973),r=a(31976);async function s(...e){let t=l({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:r()},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}}}e.exports=s}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9914.js b/dsql-app/.local_dist/server/chunks/9914.js index 9b35761..8ab21d4 100644 --- a/dsql-app/.local_dist/server/chunks/9914.js +++ b/dsql-app/.local_dist/server/chunks/9914.js @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,a,t)=>{t(29021);let s=t(89545),r=t(22373),l=t(67216),n=t(1231),o=t(88896);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:d,useLocal:i}){let c;let u=!!t?.match(/^datasquirel$/),m=i?o:u?l:n;try{c=e&&a&&Array.isArray(a)&&a[0]?u?await m(e,a):await m({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):u?await m(e):await m({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&d)try{let e=c;return await s({unparsedResults:e,tableSchema:d})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,a,t)=>{let s=t(29021);t(33873);let r=t(9973),l=t(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:a,queryString:t,queryValues:o}){try{return new Promise((d,i)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),d(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),d({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,sql:e.sql})}n=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:a,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:a,ssl:l()}}),o&&Array.isArray(o)&&o[0]?n.query(t,o).then(u).catch(m):n.query(t).then(u).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),d({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,a,t)=>{let s=t(9973),r=t(31976);async function l(...e){let a=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:r()},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 a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=l},87730:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{SingleDbUserContext:()=>D,default:()=>f,getServerSideProps:()=>S});var r=t(8732),l=t(82015),n=t.n(l),o=t(95222),d=t(20048),i=t.n(d),c=t(64098),u=t(31651),m=t.n(u),p=t(95248),h=t(67216),g=t.n(h),_=t(90378),y=t.n(_),b=e([c,p]);[c,p]=b.then?(await b)():b;let x=t(29021),D=n().createContext({});function f({user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:n,confirmedDelegetedUser:d}){let i=`${l.first_name} ${l.last_name} Users | Datasquirel"`,u=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(o.A,{head:u,user:e,extraHeaderContent:(0,r.jsx)(c.A,{database:a,query:n,confirmedDelegetedUser:d,user:e}),children:(0,r.jsx)(D.Provider,{value:{user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:n,confirmedDelegetedUser:d},children:(0,r.jsx)(p.A,{})})})}async function S({req:e,res:a,query:t}){let s=await i()(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await m()({request:e,user:s,databaseSlug:t.single,query:t});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:n}=r,o=await g()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!o||!o[0])return console.log("Database Not Found"),{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let d=JSON.parse(x.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),c=(d.filter(e=>e.dbFullName===o[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],u=await y()({database:o[0].db_full_name,queryString:`SELECT * FROM users WHERE id='${t.user}'`,tableSchema:c});return u?.[0]?{props:{user:s,database:o?.[0]||null,table:c||{},dbSchemaData:d,singleUser:u?.[0]||null,query:t,confirmedDelegetedUser:r}}:{redirect:{destination:`/admin/${s?.id}/databases/${o[0].db_slug}/users`,permanent:!1}}}s()}catch(e){s(e)}})}}; \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,a,t)=>{t(29021);let s=t(89545),r=t(22373),l=t(67216),n=t(1231),o=t(88896);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:d,useLocal:i}){let c;let u=!!i||!!t?.match(/^datasquirel$/),m=i?o:u?l:n;try{c=e&&a&&Array.isArray(a)&&a[0]?u?await m(e,a):await m({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):u?await m(e):await m({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&d)try{let e=c;return await s({unparsedResults:e,tableSchema:d})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,a,t)=>{let s=t(29021);t(33873);let r=t(9973),l=t(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:a,queryString:t,queryValues:o}){try{return new Promise((d,i)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),d(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),d({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,sql:e.sql})}n=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:a,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:a,ssl:l()}}),o&&Array.isArray(o)&&o[0]?n.query(t,o).then(u).catch(m):n.query(t).then(u).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),d({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,a,t)=>{let s=t(9973),r=t(31976);async function l(...e){let a=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:r()},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 a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=l},87730:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{SingleDbUserContext:()=>D,default:()=>f,getServerSideProps:()=>S});var r=t(8732),l=t(82015),n=t.n(l),o=t(95222),d=t(20048),i=t.n(d),c=t(64098),u=t(31651),m=t.n(u),p=t(95248),h=t(67216),g=t.n(h),_=t(90378),y=t.n(_),b=e([c,p]);[c,p]=b.then?(await b)():b;let x=t(29021),D=n().createContext({});function f({user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:n,confirmedDelegetedUser:d}){let i=`${l.first_name} ${l.last_name} Users | Datasquirel"`,u=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(o.A,{head:u,user:e,extraHeaderContent:(0,r.jsx)(c.A,{database:a,query:n,confirmedDelegetedUser:d,user:e}),children:(0,r.jsx)(D.Provider,{value:{user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:n,confirmedDelegetedUser:d},children:(0,r.jsx)(p.A,{})})})}async function S({req:e,res:a,query:t}){let s=await i()(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await m()({request:e,user:s,databaseSlug:t.single,query:t});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:n}=r,o=await g()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!o||!o[0])return console.log("Database Not Found"),{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let d=JSON.parse(x.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),c=(d.filter(e=>e.dbFullName===o[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],u=await y()({database:o[0].db_full_name,queryString:`SELECT * FROM users WHERE id='${t.user}'`,tableSchema:c});return u?.[0]?{props:{user:s,database:o?.[0]||null,table:c||{},dbSchemaData:d,singleUser:u?.[0]||null,query:t,confirmedDelegetedUser:r}}:{redirect:{destination:`/admin/${s?.id}/databases/${o[0].db_slug}/users`,permanent:!1}}}s()}catch(e){s(e)}})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/middleware-build-manifest.js b/dsql-app/.local_dist/server/middleware-build-manifest.js index bd7b1ba..b439362 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-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9654-a0de90f5592a8262.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-55aca6f5ee5ea4e8.js"],"/404":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/404-1eace598915739ef.js"],"/500":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/500-f40435ff099c3bec.js"],"/_app":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/css/59f9d939bb2b7c23.css","static/chunks/pages/_app-946b7f00d529ca86.js"],"/_error":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9654-a0de90f5592a8262.js","static/chunks/pages/about-35029bb377afcb90.js"],"/admin":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/pages/admin-efa0744f5c14dc87.js"],"/admin/[user_id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/pages/admin/[user_id]-7a323a8952bfcc9e.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/api-keys-10d23e12f43ee561.js"],"/admin/[user_id]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/connect-66673e414574a977.js"],"/admin/[user_id]/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/pages/admin/[user_id]/databases-6b7a3f30d592000d.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/pages/admin/[user_id]/databases/[single]-206058876b1ace39.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-f0141d41d59a8f0e.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-e87026abaf4b078f.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-fb8cddee9e1002a6.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-80b1f573d72d1634.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-fee85f3157ecd3ac.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/2163-2888548322298e53.js","static/chunks/6460-1a5ce626ace242bf.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-941e5c22e7c7ea7e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-d8262158ddb6bfc2.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/2163-2888548322298e53.js","static/chunks/6460-1a5ce626ace242bf.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ed4516e967a3f21e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/2163-2888548322298e53.js","static/chunks/6460-1a5ce626ace242bf.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-380611fd56aa33ad.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/8779-930a59d1d1a1be5c.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/2163-2888548322298e53.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-8d261204cffa33a9.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-f27e3bf388dde87e.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-008870712dd389f8.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-de4848c05fe0d9e2.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-817858a3ef1cccd2.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-04a47157d95b361b.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-660f9e475f68c717.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-18b8b63b1ba1c13d.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/pages/admin/[user_id]/databases/add-database-fa3778d6e9bfcc7e.js"],"/admin/[user_id]/media":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5256-56bdbb8f4109cb29.js","static/chunks/pages/admin/[user_id]/media-56c4ebe221b1b677.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5256-56bdbb8f4109cb29.js","static/chunks/pages/admin/[user_id]/media/[...folder]-44784f384aec9c72.js"],"/admin/[user_id]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/schema-22f39a31e6fc9598.js"],"/admin/[user_id]/settings":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/4147-cebaebce870b5fb7.js","static/chunks/pages/admin/[user_id]/settings-5a657bc8977fb7f7.js"],"/admin/[user_id]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/users-aac983ecf3e16d3a.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/users/add-user-b34fda15345c38b4.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/users/databases-431cac8ade89240c.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-1e40897f0a25cd14.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-2da2075136778947.js"],"/blog":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/blog-86a57f87f960d208.js"],"/contact":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/contact-cd1dacd74efe270e.js"],"/create-account":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/4147-cebaebce870b5fb7.js","static/chunks/pages/create-account-93cce1fe65377589.js"],"/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/docs-21d1067cb26803ef.js"],"/docs/[page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/docs/[page]-f26a582ab816687d.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/docs/[page]/[sub-page]-d986893c235e6d5b.js"],"/email-verification":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/email-verification-b622c0527271a373.js"],"/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/pages/login-4cd0b4a8e9124058.js"],"/logout":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/logout-b8a4207f3314e897.js"],"/privacy":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/privacy-85269bae0ca39885.js"],"/redirect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/redirect-f5ba2244ad574804.js"],"/reset-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/pages/reset-password-bf3706a70e969a34.js"],"/send-password-reset-link":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/send-password-reset-link-40c349141dc68707.js"],"/su":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su-aef540ca8a9d0d26.js"],"/su/backups":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/backups-515e155cc25fc6e2.js"],"/su/console":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-2960a1457850c87f.js","static/chunks/2016-d9bbef83b5278263.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-b4070a91c4a61e92.js"],"/su/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/5165-f1a837469292e394.js","static/chunks/pages/su/docs-2d31693f0537ec1b.js"],"/su/docs/create-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/6803-fe4ad60e4db387da.js","static/chunks/pages/su/docs/create-page-e5da0607ae76879e.js"],"/su/docs/edit-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/6803-fe4ad60e4db387da.js","static/chunks/pages/su/docs/edit-page-19991b2455a27bda.js"],"/su/docs/pages":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/5165-f1a837469292e394.js","static/chunks/pages/su/docs/pages-09cc22003ca2977d.js"],"/su/docs/pages/[id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/6803-fe4ad60e4db387da.js","static/chunks/pages/su/docs/pages/[id]-aa63805a266c145f.js"],"/su/envar":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/envar-cf23a0d85f1b95f7.js"],"/su/error-logs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/error-logs-bd760a695db3aa94.js"],"/su/load-balancing":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/load-balancing-0968f396408769a2.js"],"/su/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/su/login-9f0c33ff7a724b80.js"],"/su/servers":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/servers-9c5cb37918bc40b1.js"],"/su/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/users-bb0e572a5ae16760.js"],"/su/users/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/pages/su/users/[single]-77865aec8f94f04d.js"],"/su/users/new":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/users/new-7f43159b182edbb0.js"],"/terms":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/terms-02b626fbae43ff93.js"],"/unsubscribe":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/unsubscribe-60eb94424d6846c1.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-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9654-a0de90f5592a8262.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-55aca6f5ee5ea4e8.js"],"/404":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/404-1eace598915739ef.js"],"/500":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/500-f40435ff099c3bec.js"],"/_app":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/css/59f9d939bb2b7c23.css","static/chunks/pages/_app-946b7f00d529ca86.js"],"/_error":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9654-a0de90f5592a8262.js","static/chunks/pages/about-35029bb377afcb90.js"],"/admin":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/pages/admin-efa0744f5c14dc87.js"],"/admin/[user_id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/pages/admin/[user_id]-7a323a8952bfcc9e.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/api-keys-10d23e12f43ee561.js"],"/admin/[user_id]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/connect-66673e414574a977.js"],"/admin/[user_id]/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/pages/admin/[user_id]/databases-6b7a3f30d592000d.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/pages/admin/[user_id]/databases/[single]-206058876b1ace39.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-f0141d41d59a8f0e.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-e87026abaf4b078f.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-fb8cddee9e1002a6.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-80b1f573d72d1634.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-fee85f3157ecd3ac.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/2163-2888548322298e53.js","static/chunks/6460-3f63007c03118fc2.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-941e5c22e7c7ea7e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-d8262158ddb6bfc2.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/2163-2888548322298e53.js","static/chunks/6460-3f63007c03118fc2.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ed4516e967a3f21e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/2163-2888548322298e53.js","static/chunks/6460-3f63007c03118fc2.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-380611fd56aa33ad.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/8779-930a59d1d1a1be5c.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/2163-2888548322298e53.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-8d261204cffa33a9.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-f27e3bf388dde87e.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-008870712dd389f8.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-de4848c05fe0d9e2.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-817858a3ef1cccd2.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-04a47157d95b361b.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-660f9e475f68c717.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-18b8b63b1ba1c13d.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/pages/admin/[user_id]/databases/add-database-fa3778d6e9bfcc7e.js"],"/admin/[user_id]/media":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5256-56bdbb8f4109cb29.js","static/chunks/pages/admin/[user_id]/media-56c4ebe221b1b677.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5256-56bdbb8f4109cb29.js","static/chunks/pages/admin/[user_id]/media/[...folder]-44784f384aec9c72.js"],"/admin/[user_id]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/schema-22f39a31e6fc9598.js"],"/admin/[user_id]/settings":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/9799-abc615966398fac4.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/4147-cebaebce870b5fb7.js","static/chunks/pages/admin/[user_id]/settings-5a657bc8977fb7f7.js"],"/admin/[user_id]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/users-aac983ecf3e16d3a.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/pages/admin/[user_id]/users/add-user-b34fda15345c38b4.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/users/databases-431cac8ade89240c.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-1e40897f0a25cd14.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9799-abc615966398fac4.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-2da2075136778947.js"],"/blog":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/blog-86a57f87f960d208.js"],"/contact":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/contact-cd1dacd74efe270e.js"],"/create-account":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/4147-cebaebce870b5fb7.js","static/chunks/pages/create-account-93cce1fe65377589.js"],"/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/docs-21d1067cb26803ef.js"],"/docs/[page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/docs/[page]-f26a582ab816687d.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/docs/[page]/[sub-page]-d986893c235e6d5b.js"],"/email-verification":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/email-verification-b622c0527271a373.js"],"/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/pages/login-4cd0b4a8e9124058.js"],"/logout":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/logout-b8a4207f3314e897.js"],"/privacy":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/privacy-85269bae0ca39885.js"],"/redirect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/redirect-f5ba2244ad574804.js"],"/reset-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/pages/reset-password-bf3706a70e969a34.js"],"/send-password-reset-link":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/send-password-reset-link-40c349141dc68707.js"],"/su":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su-aef540ca8a9d0d26.js"],"/su/backups":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/backups-515e155cc25fc6e2.js"],"/su/console":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-2960a1457850c87f.js","static/chunks/2016-d9bbef83b5278263.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-b4070a91c4a61e92.js"],"/su/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/5165-f1a837469292e394.js","static/chunks/pages/su/docs-2d31693f0537ec1b.js"],"/su/docs/create-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/6803-fe4ad60e4db387da.js","static/chunks/pages/su/docs/create-page-e5da0607ae76879e.js"],"/su/docs/edit-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/6803-fe4ad60e4db387da.js","static/chunks/pages/su/docs/edit-page-19991b2455a27bda.js"],"/su/docs/pages":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/5165-f1a837469292e394.js","static/chunks/pages/su/docs/pages-09cc22003ca2977d.js"],"/su/docs/pages/[id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/1391-727762e25412e6d0.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/6803-fe4ad60e4db387da.js","static/chunks/pages/su/docs/pages/[id]-aa63805a266c145f.js"],"/su/envar":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/envar-cf23a0d85f1b95f7.js"],"/su/error-logs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/error-logs-bd760a695db3aa94.js"],"/su/load-balancing":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/load-balancing-0968f396408769a2.js"],"/su/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/su/login-9f0c33ff7a724b80.js"],"/su/servers":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/servers-9c5cb37918bc40b1.js"],"/su/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/users-bb0e572a5ae16760.js"],"/su/users/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/8717-aea4be023740276e.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/pages/su/users/[single]-77865aec8f94f04d.js"],"/su/users/new":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/pages/su/users/new-7f43159b182edbb0.js"],"/terms":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/terms-02b626fbae43ff93.js"],"/unsubscribe":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-898697981b1ca118.js","static/chunks/main-36f93e1764e6ea94.js","static/chunks/pages/unsubscribe-60eb94424d6846c1.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 7fd2444..f15a5e0 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","/_document":"pages/_document.js","/404":"pages/404.html","/500":"pages/500.html","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/addApiKey":"pages/api/addApiKey.js","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/addSocialLogin":"pages/api/addSocialLogin.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/addUsersTableToDatabase":"pages/api/addUsersTableToDatabase.js","/api/addUserTable":"pages/api/addUserTable.js","/api/addUserUser":"pages/api/addUserUser.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/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/docs/[action]":"pages/api/admin/docs/[action].js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/getUserBackups":"pages/api/admin/getUserBackups.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/clientSideAuth":"pages/api/clientSideAuth.js","/api/checkExistingFolder":"pages/api/checkExistingFolder.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/createUserDatabase":"pages/api/createUserDatabase.js","/api/contact":"pages/api/contact.js","/api/deleteApiKey":"pages/api/deleteApiKey.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/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/deleteUser":"pages/api/deleteUser.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.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/deleteUserUser":"pages/api/deleteUserUser.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/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/getUserMedia":"pages/api/getUserMedia.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/purgeDb":"pages/api/purgeDb.js","/api/query/[user_id]/get-schema":"pages/api/query/[user_id]/get-schema.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.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/resetPassword":"pages/api/resetPassword.js","/api/resetDelegatedDatabaseToken":"pages/api/resetDelegatedDatabaseToken.js","/api/runUserDbQuery":"pages/api/runUserDbQuery.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/renameMedia":"pages/api/renameMedia.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.js","/api/social-login/utils/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.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/mail":"pages/api/test/mail.js","/api/updateAdminUserAccess":"pages/api/updateAdminUserAccess.js","/api/test/cors":"pages/api/test/cors.js","/api/unsubscribe":"pages/api/unsubscribe.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/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]/databases/[single]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/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]":"pages/admin/[user_id]/databases/[single].js","/admin/[user_id]/databases/[single]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/shell":"pages/admin/[user_id]/databases/[single]/shell.js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.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]/fields":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.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]/users/[user]/change-password":"pages/admin/[user_id]/databases/[single]/users/[user]/change-password.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]/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-user":"pages/admin/[user_id]/databases/[single]/users/add-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/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]/databases/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/settings":"pages/admin/[user_id]/settings.js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.js","/admin/[user_id]/media":"pages/admin/[user_id]/media.js","/admin/[user_id]/media/[...folder]":"pages/admin/[user_id]/media/[...folder].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":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin":"pages/admin.js","/admin/[user_id]/users":"pages/admin/[user_id]/users.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-image":"pages/api/query/[user_id]/add-image.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/docs/[page]":"pages/docs/[page].js","/docs":"pages/docs.js","/create-account":"pages/create-account.js","/":"pages/index.html","/login":"pages/login.js","/privacy":"pages/privacy.html","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/email-verification":"pages/email-verification.js","/redirect":"pages/redirect.html","/logout":"pages/logout.js","/su/console":"pages/su/console.js","/su/backups":"pages/su/backups.js","/send-password-reset-link":"pages/send-password-reset-link.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":"pages/su/docs/pages.js","/su/envar":"pages/su/envar.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/error-logs":"pages/su/error-logs.js","/su":"pages/su.js","/su/load-balancing":"pages/su/load-balancing.js","/reset-password":"pages/reset-password.js","/su/servers":"pages/su/servers.js","/su/login":"pages/su/login.js","/su/users/[single]":"pages/su/users/[single].js","/terms":"pages/terms.html","/su/users":"pages/su/users.js","/su/users/new":"pages/su/users/new.js","/unsubscribe":"pages/unsubscribe.js"} \ No newline at end of file +{"/_error":"pages/_error.js","/_document":"pages/_document.js","/404":"pages/404.html","/500":"pages/500.html","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/addApiKey":"pages/api/addApiKey.js","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/addSocialLogin":"pages/api/addSocialLogin.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/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/grabBackups":"pages/api/admin/grabBackups.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/grabFile":"pages/api/admin/grabFile.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/admin/loginSuUser":"pages/api/admin/loginSuUser.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/verify":"pages/api/connect/verify.js","/api/connect":"pages/api/connect.js","/api/contact":"pages/api/contact.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/createUserDatabase":"pages/api/createUserDatabase.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/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/get-authorized-databases":"pages/api/get-authorized-databases.js","/api/getDatabaseTables":"pages/api/getDatabaseTables.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/getDelegatedDatabaseToken":"pages/api/getDelegatedDatabaseToken.js","/api/getDiskUsage":"pages/api/getDiskUsage.js","/api/getUserDatabases":"pages/api/getUserDatabases.js","/api/getDelegatedDatabases":"pages/api/getDelegatedDatabases.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/getUserMedia":"pages/api/getUserMedia.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/importDatabase":"pages/api/importDatabase.js","/api/healthcheck":"pages/api/healthcheck.js","/api/importDatabaseSchema":"pages/api/importDatabaseSchema.js","/api/infiniteScroll":"pages/api/infiniteScroll.js","/api/loginUser":"pages/api/loginUser.js","/api/media/addPrivateMedia":"pages/api/media/addPrivateMedia.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.js","/api/logoutUser":"pages/api/logoutUser.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/queryEntriesSearchTerm":"pages/api/queryEntriesSearchTerm.js","/api/query/[user_id]/update-schema-from-single-database":"pages/api/query/[user_id]/update-schema-from-single-database.js","/api/reAuthenticateUser":"pages/api/reAuthenticateUser.js","/api/registerUser":"pages/api/registerUser.js","/api/refreshEntry":"pages/api/refreshEntry.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/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.js","/api/social-login/utils/getEmailFromSocialId":"pages/api/social-login/utils/getEmailFromSocialId.js","/api/social-login/utils/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/sql-users/create":"pages/api/sql-users/create.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.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/unsubscribe":"pages/api/unsubscribe.js","/api/test/mail":"pages/api/test/mail.js","/api/test/cors":"pages/api/test/cors.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/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]/delete-user":"pages/api/user/[user_id]/delete-user.js","/api/user/[user_id]/add-user":"pages/api/user/[user_id]/add-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]/login-user":"pages/api/user/[user_id]/login-user.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]/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]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/admin/[user_id]/databases/[single]/shell":"pages/admin/[user_id]/databases/[single]/shell.js","/admin/[user_id]/databases/[single]":"pages/admin/[user_id]/databases/[single].js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.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]/edit-table":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.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]":"pages/admin/[user_id]/databases/[single]/tables/[single_table].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]/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":"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/[single]/users/add-user":"pages/admin/[user_id]/databases/[single]/users/add-user.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/databases/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]":"pages/admin/[user_id].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]/media":"pages/admin/[user_id]/media.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]/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]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/api/query/[user_id]/add-image":"pages/api/query/[user_id]/add-image.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/docs":"pages/docs.js","/docs/[page]":"pages/docs/[page].js","/login":"pages/login.js","/":"pages/index.html","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/create-account":"pages/create-account.js","/privacy":"pages/privacy.html","/logout":"pages/logout.js","/email-verification":"pages/email-verification.js","/redirect":"pages/redirect.html","/su/backups":"pages/su/backups.js","/send-password-reset-link":"pages/send-password-reset-link.js","/su/docs/create-page":"pages/su/docs/create-page.js","/su/console":"pages/su/console.js","/su/docs/edit-page":"pages/su/docs/edit-page.js","/reset-password":"pages/reset-password.js","/su/docs":"pages/su/docs.js","/su/error-logs":"pages/su/error-logs.js","/su/envar":"pages/su/envar.js","/su/docs/pages":"pages/su/docs/pages.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/load-balancing":"pages/su/load-balancing.js","/su":"pages/su.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","/su/login":"pages/su/login.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 903dc03..c0dae11 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 f316b5c..355fedc 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 7e50038..66535bf 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]/connect.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js index 5617b75..f1dac47 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),n=a(67216),l=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:o,useLocal:c}){let d;let u=!!a?.match(/^datasquirel$/),h=c?i:u?n:l;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await h(e,t):await h({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await h(e):await h({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&o)try{let e=d;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),n=a(31976),l=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((o,c)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),o(JSON.parse(JSON.stringify(e)))}function h(e){l.end(),o({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}l=d?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(a,i).then(u).catch(h):l.query(a).then(u).catch(h)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function n(...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:r()},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}}}e.exports=n},16905:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{DatabaseConnectContext:()=>S,default:()=>g,getServerSideProps:()=>b});var r=a(8732),n=a(82015),l=a.n(n),i=a(95222),o=a(20048),c=a.n(o),d=a(64098),u=a(52497),h=a(93342),p=a(67216),m=a.n(p),y=a(90378),x=a.n(y),f=e([d,u]);[d,u]=f.then?(await f)():f;let S=l().createContext({});function g({user:e,database:t,query:a,targetDbSchema:s}){let n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Database Shell"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]});return(0,r.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,r.jsx)(d.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,r.jsx)(S.Provider,{value:{user:e,database:t,targetDbSchema:s,query:a},children:(0,r.jsx)(u.A,{})})})}async function b({req:e,res:t,query:a}){let s=await c()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await m()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.single}'`);if(!r?.[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};if(1==Number(r[0].remote_connected))return{redirect:{destination:`/admin/${s?.id}/databases/${a.single}`,permanent:!1}};await x()({queryString:"SHOW TABLES",database:r[0].db_full_name});let n=(0,h.A)({userId:String(s.id)});if(!n?.[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let l=n.find(e=>e.dbFullName==r[0].db_full_name);return l?{props:{user:s,database:r[0],query:a,targetDbSchema:l}}:{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}}}s()}catch(e){s(e)}})},9455:(e,t)=>{var a;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(a||(a={}))},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,9600,7070,5134,3737],()=>a(78725));module.exports=s})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),n=a(67216),l=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:o,useLocal:c}){let d;let u=!!c||!!a?.match(/^datasquirel$/),h=c?i:u?n:l;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await h(e,t):await h({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await h(e):await h({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&o)try{let e=d;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),n=a(31976),l=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((o,c)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),o(JSON.parse(JSON.stringify(e)))}function h(e){l.end(),o({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}l=d?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(a,i).then(u).catch(h):l.query(a).then(u).catch(h)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function n(...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:r()},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}}}e.exports=n},16905:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{DatabaseConnectContext:()=>S,default:()=>g,getServerSideProps:()=>b});var r=a(8732),n=a(82015),l=a.n(n),i=a(95222),o=a(20048),c=a.n(o),d=a(64098),u=a(52497),h=a(93342),p=a(67216),m=a.n(p),y=a(90378),x=a.n(y),f=e([d,u]);[d,u]=f.then?(await f)():f;let S=l().createContext({});function g({user:e,database:t,query:a,targetDbSchema:s}){let n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Database Shell"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]});return(0,r.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,r.jsx)(d.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,r.jsx)(S.Provider,{value:{user:e,database:t,targetDbSchema:s,query:a},children:(0,r.jsx)(u.A,{})})})}async function b({req:e,res:t,query:a}){let s=await c()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await m()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.single}'`);if(!r?.[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};if(1==Number(r[0].remote_connected))return{redirect:{destination:`/admin/${s?.id}/databases/${a.single}`,permanent:!1}};await x()({queryString:"SHOW TABLES",database:r[0].db_full_name});let n=(0,h.A)({userId:String(s.id)});if(!n?.[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let l=n.find(e=>e.dbFullName==r[0].db_full_name);return l?{props:{user:s,database:r[0],query:a,targetDbSchema:l}}:{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}}}s()}catch(e){s(e)}})},9455:(e,t)=>{var a;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(a||(a={}))},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,9600,7070,5134,3737],()=>a(78725));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js index e5bb847..91b82d3 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8295,e.ids=[8295],e.modules={91489:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>h,getStaticProps:()=>m,reportWebVitals:()=>g,routeModule:()=>y,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>b});var r=a(63865),n=a(9455),l=a(30671),i=a(49407),c=a(89600),d=a(14454),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,l.M)(d,"default"),m=(0,l.M)(d,"getStaticProps"),h=(0,l.M)(d,"getStaticPaths"),p=(0,l.M)(d,"getServerSideProps"),x=(0,l.M)(d,"config"),g=(0,l.M)(d,"reportWebVitals"),b=(0,l.M)(d,"unstable_getStaticProps"),f=(0,l.M)(d,"unstable_getStaticPaths"),j=(0,l.M)(d,"unstable_getStaticParams"),S=(0,l.M)(d,"unstable_getServerProps"),v=(0,l.M)(d,"unstable_getServerSideProps"),y=new r.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/schema",pathname:"/admin/[user_id]/databases/[single]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});s()}catch(e){s(e)}})},28545:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>S});var r=a(8732),n=a(82015),l=a.n(n),i=a(46437),c=a(58548),d=a(14591),o=a(14454);a(58403);var u=a(51548),m=a(61430),h=a(220);a(63715);var p=a(89788),x=a(86571);a(34844);var g=a(59621),b=a(56248),f=a.n(b),j=e([d,o,m,h,p,g]);function S(e){let{database:t,dbSchemaData:a,tables:s,user:n}=l().useContext(o.DatabaseSchemaContext);try{if(!a)return(0,r.jsx)("span",{children:"No Database Schema Found!"});let e=a.filter(e=>e.dbFullName===t?.db_full_name)[0],[s,d]=l().useState(e.tables),[o,h]=l().useState(null),[b,j]=l().useState(e);if(!t)return(0,r.jsx)("span",{children:"No Database Record Found"});return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t.db_name}),"\xa0",(0,r.jsx)("span",{children:"Database Schema"})]})]}),(0,r.jsx)(c.A,{user:n})]}),t.active_clone?(0,r.jsx)(x.A,{database:t,user:n}):(0,r.jsx)(r.Fragment,{}),t.remote_connected?(0,r.jsx)(g.p,{database:t}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)("section",{className:"paper",children:(0,r.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,r.jsx)("div",{children:s&&s[0]&&(0,r.jsx)(u.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...s.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?h(null):h(e.target.value)}})})]}),(0,r.jsx)(p.A,{content:f().stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,r.jsx)(m.A,{})]})}catch(e){return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name||null}),"\xa0",(0,r.jsx)("span",{children:"Database Schema"})]})]}),(0,r.jsx)(c.A,{user:n})]}),(0,r.jsx)("section",{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}[d,o,m,h,p,g]=j.then?(await j)():j,s()}catch(e){s(e)}})},220:(e,t,a)=>{a.a(e,async(e,t)=>{try{a(8732),a(82015);var s=a(14454),r=e([s]);s=(r.then?(await r)():r)[0],t()}catch(e){t(e)}})},61430:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>m});var r=a(8732),n=a(82015),l=a.n(n),i=a(46437),c=a(58548),d=a(14591),o=a(14454);a(58403),a(51548),a(63715);var u=e([d,o]);function m(e){let{database:t,dbSchemaData:a,tables:s,user:n}=l().useContext(o.DatabaseSchemaContext);try{return(0,r.jsx)("section",{className:"card",children:(0,r.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),s&&s[0]&&s.map((e,t)=>(0,r.jsx)("div",{className:"card light-gray w-full",children:(0,r.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name}),"\xa0",(0,r.jsx)("span",{children:"Database Schema"})]})]}),(0,r.jsx)(c.A,{user:n})]}),(0,r.jsx)("section",{className:"card",children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}[d,o]=u.then?(await u)():u,s()}catch(e){s(e)}})},22622:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var r=a(8732),n=a(82015),l=a.n(n),i=a(74157),c=a(46437),d=a(58548);a(55312);var o=a(14591),u=a(86571),m=e([i,o]);function h(e){let{database:t,user:a}=l().useContext(i.EditDatabaseContext);return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name})]})]}),(0,r.jsx)(d.A,{user:a})]}),t?.active_clone&&a?(0,r.jsx)(u.A,{database:t,user:a}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(o.A,{})]})}[i,o]=m.then?(await m)():m,s()}catch(e){s(e)}})},14591:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>m});var r=a(8732),n=a(82015),l=a.n(n),i=a(32415),c=a(74157),d=a(56987),o=a(12042),u=e([c]);function m(e){let{user:t,dbImage:a,setDbImage:s,database:n}=l().useContext(c.EditDatabaseContext),[u,m]=l().useState(!1);return l().useRef(),(0,r.jsx)("section",{className:"paper",children:(0,r.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[u&&(0,r.jsx)(i.A,{}),(0,r.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,r.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),t&&a?(0,r.jsx)(d.A,{user:t,dbImage:a,setDbImage:s,database:n,setLoading:m}):(0,r.jsx)("span",{children:"No User and Database Image present"})]}),t&&a&&s?(0,r.jsx)(o.A,{user:t,dbImage:a,setDbImage:s,database:n}):(0,r.jsx)("span",{children:"Database Image could not be rendered"})]})})}c=(u.then?(await u)():u)[0],s()}catch(e){s(e)}})},84759:(e,t,a)=>{a.d(t,{A:()=>s});function s({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:s="javascript",entry:r,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/"+s,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==s)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==s?"{}":"",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)}}},51548:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(8732),r=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,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,s.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.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:r}=e;return(0,s.jsx)("option",{value:a,selected:!!e.default,children:r},t+1)})}),(0,s.jsx)(r.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,s.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,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.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,s.jsx)("span",{children:d})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}a(82015)},89788:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>d});var r=a(8732);a(63715);var n=a(82015),l=a.n(n);a(84759);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:s="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,r.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,r.jsx)(l().Fragment,{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],s()}catch(e){s(e)}})},34844:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),r=a(82015),n=a.n(r),l=a(96089);function i({content:e,language:t,style:a,showCopy:r}){let[i,c]=n().useState(!1),d=()=>{c(!0)},o={};return(0,s.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:a?{...a,...o}:o,children:[(0,s.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,s.jsx)("button",{className:"outlined copy-code "+(r?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:t=>{navigator.clipboard.writeText(e).then(()=>{d()})},children:(0,s.jsx)(l.A,{className:"text-white",size:20})})]})}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},93342:(e,t,a)=>{a.d(t,{A:()=>l});let s=a(22373),r=a(29021),n=a(33873);function l({userId:e}){try{let t=n.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(t,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},89545:(e,t,a)=>{let s=a(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let n=0;n",t.message),e}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),n=a(67216),l=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:c,useLocal:d}){let o;let u=!!a?.match(/^datasquirel$/),m=d?i:u?n:l;try{o=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&c)try{let e=o;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),n=a(31976),l=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((c,d)=>{let o=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),c(JSON.parse(JSON.stringify(e)))}function m(e){l.end(),c({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}l=o?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(a,i).then(u).catch(m):l.query(a).then(u).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function n(...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:r()},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}}}e.exports=n},56248:e=>{e.exports={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,a)}catch(e){return}}}},74157:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{EditDatabaseContext:()=>f,default:()=>g,getServerSideProps:()=>b});var r=a(8732),n=a(82015),l=a.n(n),i=a(95222),c=a(20048),d=a.n(c),o=a(42105),u=a(22622),m=a(64098),h=a(67216),p=a.n(h),x=e([u,m]);[u,m]=x.then?(await x)():x;let f=l().createContext({});function g({user:e,database:t,query:a}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Add Database | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Add a database"})]}),[n,c]=l().useState(t.db_image);return(0,r.jsx)(i.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(m.A,{database:t,query:a,user:e}),children:(0,r.jsxs)(f.Provider,{value:{user:e,database:t,dbImage:n,setDbImage:c},children:[(0,r.jsx)(u.A,{}),(0,r.jsx)(o.A,{setDbImage:c})]})})}async function b({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await p()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.single}'`);return r&&r[0]?{props:{user:s,database:r[0],query:a}}:{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}}}s()}catch(e){s(e)}})},14454:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{DatabaseSchemaContext:()=>S,default:()=>f,getServerSideProps:()=>j});var r=a(8732),n=a(82015),l=a.n(n),i=a(95222),c=a(20048),d=a.n(c),o=a(64098),u=a(28545),m=a(90378),h=a.n(m),p=a(67216),x=a.n(p),g=a(93342),b=e([o,u]);[o,u]=b.then?(await b)():b;let S=l().createContext({});function f({user:e,database:t,query:a,dbSchemaData:s,tables:n}){let c=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Add Database | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Add a database"})]}),[d,m]=l().useState(t.db_image);return(0,r.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,r.jsx)(o.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,r.jsx)(S.Provider,{value:{user:e,database:t,dbImage:d,setDbImage:m,dbSchemaData:s,tables:n},children:(0,r.jsx)(u.A,{})})})}async function j({req:e,res:t,query:a}){try{let s=await d()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await x()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.single}'`);if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let n=await h()({queryString:"SHOW TABLES",database:r[0].db_full_name}),l=(0,g.A)({userId:s.id});if(!l)throw Error("User schema data not found!");return{props:{user:s,database:r[0],query:a,dbSchemaData:l||[],tables:n&&n[0]?n.map(e=>{let t=Object.keys(e)[0];return{tableSlug:e[t]}}):[]}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}s()}catch(e){s(e)}})},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")},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,6521,9600,7070,5134,3737,9621,8613,2996],()=>a(91489));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8295,e.ids=[8295],e.modules={91489:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>h,getStaticProps:()=>m,reportWebVitals:()=>g,routeModule:()=>y,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>b});var r=a(63865),n=a(9455),l=a(30671),i=a(49407),c=a(89600),d=a(14454),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,l.M)(d,"default"),m=(0,l.M)(d,"getStaticProps"),h=(0,l.M)(d,"getStaticPaths"),p=(0,l.M)(d,"getServerSideProps"),x=(0,l.M)(d,"config"),g=(0,l.M)(d,"reportWebVitals"),b=(0,l.M)(d,"unstable_getStaticProps"),f=(0,l.M)(d,"unstable_getStaticPaths"),j=(0,l.M)(d,"unstable_getStaticParams"),S=(0,l.M)(d,"unstable_getServerProps"),v=(0,l.M)(d,"unstable_getServerSideProps"),y=new r.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/schema",pathname:"/admin/[user_id]/databases/[single]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});s()}catch(e){s(e)}})},28545:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>S});var r=a(8732),n=a(82015),l=a.n(n),i=a(46437),c=a(58548),d=a(14591),o=a(14454);a(58403);var u=a(51548),m=a(61430),h=a(220);a(63715);var p=a(89788),x=a(86571);a(34844);var g=a(59621),b=a(56248),f=a.n(b),j=e([d,o,m,h,p,g]);function S(e){let{database:t,dbSchemaData:a,tables:s,user:n}=l().useContext(o.DatabaseSchemaContext);try{if(!a)return(0,r.jsx)("span",{children:"No Database Schema Found!"});let e=a.filter(e=>e.dbFullName===t?.db_full_name)[0],[s,d]=l().useState(e.tables),[o,h]=l().useState(null),[b,j]=l().useState(e);if(!t)return(0,r.jsx)("span",{children:"No Database Record Found"});return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t.db_name}),"\xa0",(0,r.jsx)("span",{children:"Database Schema"})]})]}),(0,r.jsx)(c.A,{user:n})]}),t.active_clone?(0,r.jsx)(x.A,{database:t,user:n}):(0,r.jsx)(r.Fragment,{}),t.remote_connected?(0,r.jsx)(g.p,{database:t}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)("section",{className:"paper",children:(0,r.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,r.jsx)("div",{children:s&&s[0]&&(0,r.jsx)(u.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...s.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?h(null):h(e.target.value)}})})]}),(0,r.jsx)(p.A,{content:f().stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,r.jsx)(m.A,{})]})}catch(e){return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name||null}),"\xa0",(0,r.jsx)("span",{children:"Database Schema"})]})]}),(0,r.jsx)(c.A,{user:n})]}),(0,r.jsx)("section",{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}[d,o,m,h,p,g]=j.then?(await j)():j,s()}catch(e){s(e)}})},220:(e,t,a)=>{a.a(e,async(e,t)=>{try{a(8732),a(82015);var s=a(14454),r=e([s]);s=(r.then?(await r)():r)[0],t()}catch(e){t(e)}})},61430:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>m});var r=a(8732),n=a(82015),l=a.n(n),i=a(46437),c=a(58548),d=a(14591),o=a(14454);a(58403),a(51548),a(63715);var u=e([d,o]);function m(e){let{database:t,dbSchemaData:a,tables:s,user:n}=l().useContext(o.DatabaseSchemaContext);try{return(0,r.jsx)("section",{className:"card",children:(0,r.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),s&&s[0]&&s.map((e,t)=>(0,r.jsx)("div",{className:"card light-gray w-full",children:(0,r.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name}),"\xa0",(0,r.jsx)("span",{children:"Database Schema"})]})]}),(0,r.jsx)(c.A,{user:n})]}),(0,r.jsx)("section",{className:"card",children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}[d,o]=u.then?(await u)():u,s()}catch(e){s(e)}})},22622:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var r=a(8732),n=a(82015),l=a.n(n),i=a(74157),c=a(46437),d=a(58548);a(55312);var o=a(14591),u=a(86571),m=e([i,o]);function h(e){let{database:t,user:a}=l().useContext(i.EditDatabaseContext);return(0,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,r.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name})]})]}),(0,r.jsx)(d.A,{user:a})]}),t?.active_clone&&a?(0,r.jsx)(u.A,{database:t,user:a}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(o.A,{})]})}[i,o]=m.then?(await m)():m,s()}catch(e){s(e)}})},14591:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>m});var r=a(8732),n=a(82015),l=a.n(n),i=a(32415),c=a(74157),d=a(56987),o=a(12042),u=e([c]);function m(e){let{user:t,dbImage:a,setDbImage:s,database:n}=l().useContext(c.EditDatabaseContext),[u,m]=l().useState(!1);return l().useRef(),(0,r.jsx)("section",{className:"paper",children:(0,r.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[u&&(0,r.jsx)(i.A,{}),(0,r.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,r.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),t&&a?(0,r.jsx)(d.A,{user:t,dbImage:a,setDbImage:s,database:n,setLoading:m}):(0,r.jsx)("span",{children:"No User and Database Image present"})]}),t&&a&&s?(0,r.jsx)(o.A,{user:t,dbImage:a,setDbImage:s,database:n}):(0,r.jsx)("span",{children:"Database Image could not be rendered"})]})})}c=(u.then?(await u)():u)[0],s()}catch(e){s(e)}})},84759:(e,t,a)=>{a.d(t,{A:()=>s});function s({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:s="javascript",entry:r,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/"+s,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==s)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==s?"{}":"",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)}}},51548:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(8732),r=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,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,s.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.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:r}=e;return(0,s.jsx)("option",{value:a,selected:!!e.default,children:r},t+1)})}),(0,s.jsx)(r.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,s.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,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.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,s.jsx)("span",{children:d})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}a(82015)},89788:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>d});var r=a(8732);a(63715);var n=a(82015),l=a.n(n);a(84759);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:s="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,r.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,r.jsx)(l().Fragment,{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],s()}catch(e){s(e)}})},34844:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),r=a(82015),n=a.n(r),l=a(96089);function i({content:e,language:t,style:a,showCopy:r}){let[i,c]=n().useState(!1),d=()=>{c(!0)},o={};return(0,s.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:a?{...a,...o}:o,children:[(0,s.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,s.jsx)("button",{className:"outlined copy-code "+(r?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:t=>{navigator.clipboard.writeText(e).then(()=>{d()})},children:(0,s.jsx)(l.A,{className:"text-white",size:20})})]})}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},93342:(e,t,a)=>{a.d(t,{A:()=>l});let s=a(22373),r=a(29021),n=a(33873);function l({userId:e}){try{let t=n.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(t,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},89545:(e,t,a)=>{let s=a(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let n=0;n",t.message),e}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),n=a(67216),l=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:c,useLocal:d}){let o;let u=!!d||!!a?.match(/^datasquirel$/),m=d?i:u?n:l;try{o=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&c)try{let e=o;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),n=a(31976),l=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((c,d)=>{let o=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),c(JSON.parse(JSON.stringify(e)))}function m(e){l.end(),c({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}l=o?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(a,i).then(u).catch(m):l.query(a).then(u).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function n(...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:r()},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}}}e.exports=n},56248:e=>{e.exports={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,a)}catch(e){return}}}},74157:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{EditDatabaseContext:()=>f,default:()=>g,getServerSideProps:()=>b});var r=a(8732),n=a(82015),l=a.n(n),i=a(95222),c=a(20048),d=a.n(c),o=a(42105),u=a(22622),m=a(64098),h=a(67216),p=a.n(h),x=e([u,m]);[u,m]=x.then?(await x)():x;let f=l().createContext({});function g({user:e,database:t,query:a}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Add Database | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Add a database"})]}),[n,c]=l().useState(t.db_image);return(0,r.jsx)(i.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(m.A,{database:t,query:a,user:e}),children:(0,r.jsxs)(f.Provider,{value:{user:e,database:t,dbImage:n,setDbImage:c},children:[(0,r.jsx)(u.A,{}),(0,r.jsx)(o.A,{setDbImage:c})]})})}async function b({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await p()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.single}'`);return r&&r[0]?{props:{user:s,database:r[0],query:a}}:{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}}}s()}catch(e){s(e)}})},14454:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{DatabaseSchemaContext:()=>S,default:()=>f,getServerSideProps:()=>j});var r=a(8732),n=a(82015),l=a.n(n),i=a(95222),c=a(20048),d=a.n(c),o=a(64098),u=a(28545),m=a(90378),h=a.n(m),p=a(67216),x=a.n(p),g=a(93342),b=e([o,u]);[o,u]=b.then?(await b)():b;let S=l().createContext({});function f({user:e,database:t,query:a,dbSchemaData:s,tables:n}){let c=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Add Database | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Add a database"})]}),[d,m]=l().useState(t.db_image);return(0,r.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,r.jsx)(o.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,r.jsx)(S.Provider,{value:{user:e,database:t,dbImage:d,setDbImage:m,dbSchemaData:s,tables:n},children:(0,r.jsx)(u.A,{})})})}async function j({req:e,res:t,query:a}){try{let s=await d()(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await x()(`SELECT * FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.single}'`);if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let n=await h()({queryString:"SHOW TABLES",database:r[0].db_full_name}),l=(0,g.A)({userId:s.id});if(!l)throw Error("User schema data not found!");return{props:{user:s,database:r[0],query:a,dbSchemaData:l||[],tables:n&&n[0]?n.map(e=>{let t=Object.keys(e)[0];return{tableSlug:e[t]}}):[]}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}s()}catch(e){s(e)}})},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")},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,6521,9600,7070,5134,3737,9621,8613,2996],()=>a(91489));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js index 55c8f9f..f927385 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,r)=>{r(29021);let a=r(89545),s=r(22373),n=r(67216),l=r(1231),i=r(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:c,useLocal:o}){let d;let u=!!r?.match(/^datasquirel$/),p=o?i:u?n:l;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):u?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&c)try{let e=d;return await a({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,t,r)=>{let a=r(29021);r(33873);let s=r(9973),n=r(31976),l=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((c,o)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),c(JSON.parse(JSON.stringify(e)))}function p(e){l.end(),c({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}l=d?s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(r,i).then(u).catch(p):l.query(r).then(u).catch(p)}catch(e){a.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,r)=>{let a=r(9973),s=r(31976);async function n(...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:s()},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}}}e.exports=n},92557:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseShellContext:()=>A,default:()=>x,getServerSideProps:()=>S});var s=r(8732),n=r(82015),l=r.n(n),i=r(95222),c=r(20048),o=r.n(c),d=r(64098),u=r(90378),p=r.n(u),h=r(64648),y=r(67216),m=r.n(y),g=r(93342),f=e([d,h]);[d,h]=f.then?(await f)():f;let A=l().createContext({});function x({user:e,database:t,query:r,dbSchemaData:a,tables:n}){let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Database Shell"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]}),[o,u]=l().useState(t.db_image);return(0,s.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,s.jsx)(A.Provider,{value:{user:e,database:t,dbImage:o,setDbImage:u,dbSchemaData:a,tables:n},children:(0,s.jsx)(h.A,{})})})}async function S({req:e,res:t,query:r}){try{let a=await o()(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await m()(`SELECT * FROM user_databases WHERE user_id='${a.id}' AND db_slug='${r.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let n=await p()({queryString:"SHOW TABLES",database:s[0].db_full_name}),l=(0,g.A)({userId:a.id});if(!l)throw Error("User schema data not found!");return{props:{user:a,database:s[0],query:r,dbSchemaData:l||[],tables:n&&n[0]?n.map(e=>{let t=Object.keys(e)[0];return{tableSlug:e[t]}}):[]}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}a()}catch(e){a(e)}})},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9600,7070,5134],()=>r(12009));module.exports=a})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,r)=>{r(29021);let a=r(89545),s=r(22373),n=r(67216),l=r(1231),i=r(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:c,useLocal:o}){let d;let u=!!o||!!r?.match(/^datasquirel$/),p=o?i:u?n:l;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):u?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&c)try{let e=d;return await a({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,t,r)=>{let a=r(29021);r(33873);let s=r(9973),n=r(31976),l=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((c,o)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),c(JSON.parse(JSON.stringify(e)))}function p(e){l.end(),c({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}l=d?s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(r,i).then(u).catch(p):l.query(r).then(u).catch(p)}catch(e){a.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,r)=>{let a=r(9973),s=r(31976);async function n(...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:s()},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}}}e.exports=n},92557:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseShellContext:()=>A,default:()=>x,getServerSideProps:()=>S});var s=r(8732),n=r(82015),l=r.n(n),i=r(95222),c=r(20048),o=r.n(c),d=r(64098),u=r(90378),p=r.n(u),h=r(64648),y=r(67216),m=r.n(y),g=r(93342),f=e([d,h]);[d,h]=f.then?(await f)():f;let A=l().createContext({});function x({user:e,database:t,query:r,dbSchemaData:a,tables:n}){let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Database Shell"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]}),[o,u]=l().useState(t.db_image);return(0,s.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,s.jsx)(A.Provider,{value:{user:e,database:t,dbImage:o,setDbImage:u,dbSchemaData:a,tables:n},children:(0,s.jsx)(h.A,{})})})}async function S({req:e,res:t,query:r}){try{let a=await o()(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await m()(`SELECT * FROM user_databases WHERE user_id='${a.id}' AND db_slug='${r.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let n=await p()({queryString:"SHOW TABLES",database:s[0].db_full_name}),l=(0,g.A)({userId:a.id});if(!l)throw Error("User schema data not found!");return{props:{user:a,database:s[0],query:r,dbSchemaData:l||[],tables:n&&n[0]?n.map(e=>{let t=Object.keys(e)[0];return{tableSlug:e[t]}}):[]}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}a()}catch(e){a(e)}})},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9600,7070,5134],()=>r(12009));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js index dde0aac..431b7b7 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6569,e.ids=[6569],e.modules={8409:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>b,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>_});var r=a(63865),l=a(9455),n=a(30671),i=a(49407),d=a(89600),o=a(48292),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,n.M)(o,"default"),b=(0,n.M)(o,"getStaticProps"),p=(0,n.M)(o,"getStaticPaths"),m=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),h=(0,n.M)(o,"reportWebVitals"),_=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),f=(0,n.M)(o,"unstable_getStaticParams"),S=(0,n.M)(o,"unstable_getServerProps"),D=(0,n.M)(o,"unstable_getServerSideProps"),y=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/fields",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/fields",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});s()}catch(e){s(e)}})},73972:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),r=a(82015),l=a.n(r),n=a(63715);a(58548);var i=a(55158),d=a(32415);function o({targetTable:e,database:t}){let[a,r]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[a&&(0,s.jsx)(d.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{r(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},59844:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var r=a(8732),l=a(82015),n=a.n(l),i=a(48292),d=a(46437),o=a(58548),c=a(94010),u=a(77802),b=a(86571),p=a(65241),m=a(59621),g=e([i,c,m]);function h(e){let{user:t,database:a,table:s,tableFields:l,setTableFields:g,setTargetField:h,refreshFieldsListRef:_,updateTableAfterFieldsUpdateFunction:x,query:f,confirmedDelegetedUser:S}=n().useContext(i.TableFieldsContext);return S?.delegated,S?.priviledges?.match(/Edit Tables/i),S?.priviledges?.match(/Delete Tables/i),S?.priviledges?.match(/Create Tables/i),s?.childTable&&s.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),""),(0,r.jsxs)(n().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(d.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{children:"All Fields in"}),(0,r.jsx)("div",{className:"inline relative",children:(0,r.jsxs)("a",{href:`/admin/${t?.id}/databases/${a.db_slug}/tables/${s.tableName}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 ml-2 text-primary hover:text-primary_dark relative",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},children:[s.tableFullName,(0,r.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,r.jsx)(c.A,{slugText:s.tableName,justIcon:!0})})]})}),(0,r.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:`/admin/${t?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add New Table Entry"})]})})]}),(0,r.jsx)(o.A,{confirmedDelegetedUser:f?.delegated,user:t})]}),a.active_clone?(0,r.jsx)(b.A,{database:a,user:t}):(0,r.jsx)(r.Fragment,{}),a.remote_connected?(0,r.jsx)(m.p,{database:a}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(p.A,{table:s,database:a,user:t}),(0,r.jsx)(u.A,{user:t,tableFields:l,setTableFields:g,setTargetField:h,refreshFieldsListRef:_,updateTable:!0,updateTableAfterFieldsUpdateFunction:x,database:a,confirmedDelegetedUser:S,query:f,table:s})]})}[i,c,m]=g.then?(await g)():g,s()}catch(e){s(e)}})},65241:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n({table:e,database:t,user:a,activeDbClone:r}){let n=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===t.db_full_name;return n?(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/${n}/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)(l().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${n}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:n})}),(0,s.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(l().Fragment,{})}},31651:(e,t,a)=>{a(81630);let s=a(77463);e.exports=async function({request:e,databaseSlug:t,user:a,query:r}){try{let l=a.id,n=null;if(!r?.delegated)return{dbUserId:l};let i=r.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=s({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}}},92728:(e,t,a)=>{a.d(t,{A:()=>b}),a(81630);var s=a(22373),r=a.n(s),l=a(67216),n=a.n(l),i=a(31651),d=a.n(i),o=a(93342),c=a(90378),u=a.n(c);async function b({req:e,user:t,query:a}){try{let s=await d()({request:e,user:t,databaseSlug:a.single,query:a});if(!s)return null;let{dbUserId:r}=s,l=await n()(`SELECT * FROM user_databases WHERE user_id='${r}' AND db_slug='${a.single}'`);if(!l?.[0])return null;let i=(0,o.A)({userId:r});if(!i)throw Error("DB Schema not found!");let c=i.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables,b=c?.filter(e=>e.tableName===a.single_table)[0],p=await n()(`SELECT * FROM user_database_tables WHERE user_id='${r}' AND db_id='${l[0].id}' AND table_slug='${a.single_table}'`),m=await u()({database:l[0].db_full_name,queryString:`SELECT * FROM ${b?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:b}),g=await u()({database:l[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${b?.tableName}`,tableSchema:b});if(s.rootUserId){let e=i.filter(e=>e.dbFullName==l[0].db_full_name)[0],t=e.tables.filter(e=>e.tableName===b?.tableName);e.tables=t,i=[e]}return{confirmedDelegetedUser:s||null,database:l[0]||null,dbSchemaData:i||null,entries:m||null,entriesCount:g?.[0]?.count||0,query:a,table:b,tableRecord:p[0]||{}}}catch(e){return r()({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:t}),{}}}},94933:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(27825),r=a(63715);function l({query:e,table:t,database:a,dbSchemaData:l,tableFields:n,tableIndexes:i,setLoading:d}){let o=[...l];try{let l=o.findIndex(e=>e.dbFullName===a.db_full_name),c=o[l].tables.findIndex(e=>e.tableName===t.tableName);if(o[l].tables[c].fields=n?s.cloneDeep(n):[],o[l].tables[c].indexes=i?s.cloneDeep(i):[],o[l].tables[c].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,r.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:o,database:a.db_slug,table:t,delegated:e?.delegated}},!0).then(e=>{e?.success?window.location.reload():(console.log("Res",e),window.alert(e?.msg||"Operation Failed. Please check permissions."))}).finally(()=>{d&&setTimeout(()=>{d(!1)},1e3)})}catch(e){window.alert(e.message),setTimeout(()=>{d?.(!1)},1e3);return}}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,a)=>{let s=a(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let l=0;l",t.message),e}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),l=a(67216),n=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:d,useLocal:o}){let c;let u=!!a?.match(/^datasquirel$/),b=o?i:u?l:n;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await b(e,t):await b({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await b(e):await b({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&d)try{let e=c;return await s({unparsedResults:e,tableSchema:d})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),l=a(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((d,o)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),d(JSON.parse(JSON.stringify(e)))}function b(e){n.end(),d({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}n=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),i&&Array.isArray(i)&&i[0]?n.query(a,i).then(u).catch(b):n.query(a).then(u).catch(b)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),d({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function l(...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:r()},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}}}e.exports=l},48292:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableFieldsContext:()=>S,default:()=>x,getServerSideProps:()=>f});var r=a(8732),l=a(82015),n=a.n(l),i=a(20048),d=a.n(i),o=a(95222),c=a(73972),u=a(64098),b=a(59844),p=a(94933),m=a(22373),g=a.n(m),h=a(92728),_=e([u,b]);[u,b]=_.then?(await _)():_;let S=n().createContext({});function x({user:e,database:t,table:a,dbSchemaData:s,query:l,confirmedDelegetedUser:i}){let d=`${a.tableFullName} Table | Datasquirel`,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:d}),(0,r.jsx)("meta",{name:"description",content:"Single Table"})]}),[g,h]=n().useState(a.fields),[_,x]=n().useState(null),f=n().useRef();return(0,r.jsx)(o.A,{head:m,user:e,extraHeaderContent:(0,r.jsx)(u.A,{database:t,query:l,confirmedDelegetedUser:i,user:e}),children:(0,r.jsxs)(S.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,targetField:_,setTargetField:x,refreshFieldsListRef:f,tableFields:g,setTableFields:h,updateTableAfterFieldsUpdateFunction:function(e){(0,p.A)({query:l,table:a,database:t,dbSchemaData:s,tableFields:g,tableIndexes:a.indexes,setLoading:e})},query:l,confirmedDelegetedUser:i},children:[(0,r.jsx)(b.A,{}),(0,r.jsx)(c.A,{database:t})]})})}async function f({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=await (0,h.A)({req:e,query:a,user:s});if(!t||!t?.table)throw Error("Data Fetching Error!");return{props:{user:s,...t}}}catch(e){return g()({component:"fields-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null}}}}s()}catch(e){s(e)}})},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},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")},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,6521,9600,7070,5134,3737,9621,8613,5421],()=>a(8409));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6569,e.ids=[6569],e.modules={8409:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>b,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>_});var r=a(63865),l=a(9455),n=a(30671),i=a(49407),d=a(89600),o=a(48292),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,n.M)(o,"default"),b=(0,n.M)(o,"getStaticProps"),p=(0,n.M)(o,"getStaticPaths"),m=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),h=(0,n.M)(o,"reportWebVitals"),_=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),f=(0,n.M)(o,"unstable_getStaticParams"),S=(0,n.M)(o,"unstable_getServerProps"),D=(0,n.M)(o,"unstable_getServerSideProps"),y=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/fields",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/fields",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});s()}catch(e){s(e)}})},73972:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),r=a(82015),l=a.n(r),n=a(63715);a(58548);var i=a(55158),d=a(32415);function o({targetTable:e,database:t}){let[a,r]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[a&&(0,s.jsx)(d.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{r(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},59844:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var r=a(8732),l=a(82015),n=a.n(l),i=a(48292),d=a(46437),o=a(58548),c=a(94010),u=a(77802),b=a(86571),p=a(65241),m=a(59621),g=e([i,c,m]);function h(e){let{user:t,database:a,table:s,tableFields:l,setTableFields:g,setTargetField:h,refreshFieldsListRef:_,updateTableAfterFieldsUpdateFunction:x,query:f,confirmedDelegetedUser:S}=n().useContext(i.TableFieldsContext);return S?.delegated,S?.priviledges?.match(/Edit Tables/i),S?.priviledges?.match(/Delete Tables/i),S?.priviledges?.match(/Create Tables/i),s?.childTable&&s.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),""),(0,r.jsxs)(n().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(d.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{children:"All Fields in"}),(0,r.jsx)("div",{className:"inline relative",children:(0,r.jsxs)("a",{href:`/admin/${t?.id}/databases/${a.db_slug}/tables/${s.tableName}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 ml-2 text-primary hover:text-primary_dark relative",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},children:[s.tableFullName,(0,r.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,r.jsx)(c.A,{slugText:s.tableName,justIcon:!0})})]})}),(0,r.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:`/admin/${t?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add New Table Entry"})]})})]}),(0,r.jsx)(o.A,{confirmedDelegetedUser:f?.delegated,user:t})]}),a.active_clone?(0,r.jsx)(b.A,{database:a,user:t}):(0,r.jsx)(r.Fragment,{}),a.remote_connected?(0,r.jsx)(m.p,{database:a}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(p.A,{table:s,database:a,user:t}),(0,r.jsx)(u.A,{user:t,tableFields:l,setTableFields:g,setTargetField:h,refreshFieldsListRef:_,updateTable:!0,updateTableAfterFieldsUpdateFunction:x,database:a,confirmedDelegetedUser:S,query:f,table:s})]})}[i,c,m]=g.then?(await g)():g,s()}catch(e){s(e)}})},65241:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n({table:e,database:t,user:a,activeDbClone:r}){let n=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===t.db_full_name;return n?(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/${n}/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)(l().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${n}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:n})}),(0,s.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(l().Fragment,{})}},31651:(e,t,a)=>{a(81630);let s=a(77463);e.exports=async function({request:e,databaseSlug:t,user:a,query:r}){try{let l=a.id,n=null;if(!r?.delegated)return{dbUserId:l};let i=r.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=s({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}}},92728:(e,t,a)=>{a.d(t,{A:()=>b}),a(81630);var s=a(22373),r=a.n(s),l=a(67216),n=a.n(l),i=a(31651),d=a.n(i),o=a(93342),c=a(90378),u=a.n(c);async function b({req:e,user:t,query:a}){try{let s=await d()({request:e,user:t,databaseSlug:a.single,query:a});if(!s)return null;let{dbUserId:r}=s,l=await n()(`SELECT * FROM user_databases WHERE user_id='${r}' AND db_slug='${a.single}'`);if(!l?.[0])return null;let i=(0,o.A)({userId:r});if(!i)throw Error("DB Schema not found!");let c=i.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables,b=c?.filter(e=>e.tableName===a.single_table)[0],p=await n()(`SELECT * FROM user_database_tables WHERE user_id='${r}' AND db_id='${l[0].id}' AND table_slug='${a.single_table}'`),m=await u()({database:l[0].db_full_name,queryString:`SELECT * FROM ${b?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:b}),g=await u()({database:l[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${b?.tableName}`,tableSchema:b});if(s.rootUserId){let e=i.filter(e=>e.dbFullName==l[0].db_full_name)[0],t=e.tables.filter(e=>e.tableName===b?.tableName);e.tables=t,i=[e]}return{confirmedDelegetedUser:s||null,database:l[0]||null,dbSchemaData:i||null,entries:m||null,entriesCount:g?.[0]?.count||0,query:a,table:b,tableRecord:p[0]||{}}}catch(e){return r()({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:t}),{}}}},94933:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(27825),r=a(63715);function l({query:e,table:t,database:a,dbSchemaData:l,tableFields:n,tableIndexes:i,setLoading:d}){let o=[...l];try{let l=o.findIndex(e=>e.dbFullName===a.db_full_name),c=o[l].tables.findIndex(e=>e.tableName===t.tableName);if(o[l].tables[c].fields=n?s.cloneDeep(n):[],o[l].tables[c].indexes=i?s.cloneDeep(i):[],o[l].tables[c].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,r.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:o,database:a.db_slug,table:t,delegated:e?.delegated}},!0).then(e=>{e?.success?window.location.reload():(console.log("Res",e),window.alert(e?.msg||"Operation Failed. Please check permissions."))}).finally(()=>{d&&setTimeout(()=>{d(!1)},1e3)})}catch(e){window.alert(e.message),setTimeout(()=>{d?.(!1)},1e3);return}}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,a)=>{let s=a(77463),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let l=0;l",t.message),e}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),l=a(67216),n=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:d,useLocal:o}){let c;let u=!!o||!!a?.match(/^datasquirel$/),b=o?i:u?l:n;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await b(e,t):await b({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await b(e):await b({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&d)try{let e=c;return await s({unparsedResults:e,tableSchema:d})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),l=a(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((d,o)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){n.end(),d(JSON.parse(JSON.stringify(e)))}function b(e){n.end(),d({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}n=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),i&&Array.isArray(i)&&i[0]?n.query(a,i).then(u).catch(b):n.query(a).then(u).catch(b)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),d({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function l(...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:r()},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}}}e.exports=l},48292:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableFieldsContext:()=>S,default:()=>x,getServerSideProps:()=>f});var r=a(8732),l=a(82015),n=a.n(l),i=a(20048),d=a.n(i),o=a(95222),c=a(73972),u=a(64098),b=a(59844),p=a(94933),m=a(22373),g=a.n(m),h=a(92728),_=e([u,b]);[u,b]=_.then?(await _)():_;let S=n().createContext({});function x({user:e,database:t,table:a,dbSchemaData:s,query:l,confirmedDelegetedUser:i}){let d=`${a.tableFullName} Table | Datasquirel`,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:d}),(0,r.jsx)("meta",{name:"description",content:"Single Table"})]}),[g,h]=n().useState(a.fields),[_,x]=n().useState(null),f=n().useRef();return(0,r.jsx)(o.A,{head:m,user:e,extraHeaderContent:(0,r.jsx)(u.A,{database:t,query:l,confirmedDelegetedUser:i,user:e}),children:(0,r.jsxs)(S.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,targetField:_,setTargetField:x,refreshFieldsListRef:f,tableFields:g,setTableFields:h,updateTableAfterFieldsUpdateFunction:function(e){(0,p.A)({query:l,table:a,database:t,dbSchemaData:s,tableFields:g,tableIndexes:a.indexes,setLoading:e})},query:l,confirmedDelegetedUser:i},children:[(0,r.jsx)(b.A,{}),(0,r.jsx)(c.A,{database:t})]})})}async function f({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=await (0,h.A)({req:e,query:a,user:s});if(!t||!t?.table)throw Error("Data Fetching Error!");return{props:{user:s,...t}}}catch(e){return g()({component:"fields-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null}}}}s()}catch(e){s(e)}})},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},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")},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,6521,9600,7070,5134,3737,9621,8613,5421],()=>a(8409));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js index 8cea6b8..72ce874 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,s,t)=>{t(29021);let r=t(89545),a=t(22373),n=t(67216),l=t(1231),i=t(88896);e.exports=async function({queryString:e,queryValuesArray:s,database:t,tableSchema:o,useLocal:d}){let c;let u=!!t?.match(/^datasquirel$/),m=d?i:u?n:l;try{c=e&&s&&Array.isArray(s)&&s[0]?u?await m(e,s):await m({paradigm:"Full Access",database:t,queryString:e,queryValues:s}):u?await m(e):await m({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await r({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,s,t)=>{let r=t(29021);t(33873);let a=t(9973),n=t(31976),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:s,queryString:t,queryValues:i}){try{return new Promise((o,d)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){l.end(),o({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}l=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:s,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:s,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(t,i).then(u).catch(m):l.query(t).then(u).catch(m)}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,s,t)=>{let r=t(9973),a=t(31976);async function n(...e){let s=r({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:a()},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 s.query(...e);return await s.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=n},53702:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{UsersContext:()=>D,default:()=>f,getServerSideProps:()=>v});var a=t(8732),n=t(82015),l=t.n(n),i=t(95222),o=t(20048),d=t.n(o),c=t(84312),u=t(90378),m=t.n(u),p=t(25969),g=t(64098),b=t(31651),h=t.n(b),x=t(67216),_=t.n(x),S=e([p,g]);[p,g]=S.then?(await S)():S;let y=t(29021),D=l().createContext({});function f({user:e,database:s,table:t,dbSchemaData:r,users:n,query:o,confirmedDelegetedUser:d}){let u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Users | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[m,b]=l().useState(null),[h,x]=l().useState(null);return(0,a.jsx)(i.A,{head:u,user:e,extraHeaderContent:(0,a.jsx)(g.A,{database:s,query:o,confirmedDelegetedUser:d,user:e}),children:(0,a.jsxs)(D.Provider,{value:{user:e,users:n,targetUser:h,setTargetUser:x,database:s,table:t,dbSchemaData:r,query:o,confirmedDelegetedUser:d},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(c.A,{targetUser:h,user:e,setTargetUser:x})]})})}async function v({req:e,res:s,query:t}){try{let r=await d()(e,s);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await h()({request:e,user:r,databaseSlug:t.single,query:t});if(!a)throw Error("No Db Object Found!");let{dbUserId:n,rootUserId:l}=a,i=await _()(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${t.single}'`);if(!i||!i[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(y.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),c=(o.filter(e=>e.dbFullName===i[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],u=await m()({database:i[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:c});return{props:{user:r,database:i[0],table:c||{},dbSchemaData:o,users:u?.error?[]:u,query:t,confirmedDelegetedUser:a}}}catch(e){return console.log("Db Users Error =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}r()}catch(e){r(e)}})},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[883,9821,6521,9600,7070,5134,9621,4312],()=>t(74468));module.exports=r})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,s,t)=>{t(29021);let r=t(89545),a=t(22373),n=t(67216),l=t(1231),i=t(88896);e.exports=async function({queryString:e,queryValuesArray:s,database:t,tableSchema:o,useLocal:d}){let c;let u=!!d||!!t?.match(/^datasquirel$/),m=d?i:u?n:l;try{c=e&&s&&Array.isArray(s)&&s[0]?u?await m(e,s):await m({paradigm:"Full Access",database:t,queryString:e,queryValues:s}):u?await m(e):await m({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await r({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},1231:(e,s,t)=>{let r=t(29021);t(33873);let a=t(9973),n=t(31976),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:s,queryString:t,queryValues:i}){try{return new Promise((o,d)=>{let c=!!e?.match(/full.access|^fa$/i);try{function u(e){l.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){l.end(),o({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}l=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:s,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:s,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(t,i).then(u).catch(m):l.query(t).then(u).catch(m)}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,s,t)=>{let r=t(9973),a=t(31976);async function n(...e){let s=r({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:a()},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 s.query(...e);return await s.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=n},53702:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{UsersContext:()=>D,default:()=>f,getServerSideProps:()=>v});var a=t(8732),n=t(82015),l=t.n(n),i=t(95222),o=t(20048),d=t.n(o),c=t(84312),u=t(90378),m=t.n(u),p=t(25969),g=t(64098),b=t(31651),h=t.n(b),x=t(67216),_=t.n(x),S=e([p,g]);[p,g]=S.then?(await S)():S;let y=t(29021),D=l().createContext({});function f({user:e,database:s,table:t,dbSchemaData:r,users:n,query:o,confirmedDelegetedUser:d}){let u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Users | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[m,b]=l().useState(null),[h,x]=l().useState(null);return(0,a.jsx)(i.A,{head:u,user:e,extraHeaderContent:(0,a.jsx)(g.A,{database:s,query:o,confirmedDelegetedUser:d,user:e}),children:(0,a.jsxs)(D.Provider,{value:{user:e,users:n,targetUser:h,setTargetUser:x,database:s,table:t,dbSchemaData:r,query:o,confirmedDelegetedUser:d},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(c.A,{targetUser:h,user:e,setTargetUser:x})]})})}async function v({req:e,res:s,query:t}){try{let r=await d()(e,s);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await h()({request:e,user:r,databaseSlug:t.single,query:t});if(!a)throw Error("No Db Object Found!");let{dbUserId:n,rootUserId:l}=a,i=await _()(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${t.single}'`);if(!i||!i[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(y.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),c=(o.filter(e=>e.dbFullName===i[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],u=await m()({database:i[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:c});return{props:{user:r,database:i[0],table:c||{},dbSchemaData:o,users:u?.error?[]:u,query:t,confirmedDelegetedUser:a}}}catch(e){return console.log("Db Users Error =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}r()}catch(e){r(e)}})},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[883,9821,6521,9600,7070,5134,9621,4312],()=>t(74468));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 b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js index ebf475f..e22b4b9 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 @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),l=a(67216),n=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:o,useLocal:d}){let u;let c=!!a?.match(/^datasquirel$/),m=d?i:c?l:n;try{u=e&&t&&Array.isArray(t)&&t[0]?c?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):c?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),l=a(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((o,d)=>{let u=!!e?.match(/full.access|^fa$/i);try{function c(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),o({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}n=u?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),i&&Array.isArray(i)&&i[0]?n.query(a,i).then(c).catch(m):n.query(a).then(c).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function l(...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:r()},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}}}e.exports=l},12403:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{AddNewDbUserContext:()=>w,default:()=>b,getServerSideProps:()=>y});var r=a(8732),l=a(82015),n=a.n(l),i=a(95222),o=a(20048),d=a.n(o),u=a(16975),c=a(90378),m=a.n(c),p=a(64098),g=a(31651),h=a.n(g),x=a(67216),f=a.n(x),_=e([u,p]);[u,p]=_.then?(await _)():_;let S=a(29021),w=n().createContext({});function b({user:e,database:t,table:a,query:s,confirmedDelegetedUser:l}){let n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Users | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,r.jsx)(p.A,{database:t,query:s,confirmedDelegetedUser:l,user:e}),children:(0,r.jsx)(w.Provider,{value:{user:e,database:t,table:a,query:s,confirmedDelegetedUser:l},children:(0,r.jsx)(u.A,{})})})}async function y({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await h()({request:e,user:s,databaseSlug:a.single,query:a});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:n}=r,i=await f()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!i||!i[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let o=JSON.parse(S.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 m()({database:i[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:u}),{props:{user:s,database:i[0],table:u||{},query:a,confirmedDelegetedUser:r}}}s()}catch(e){s(e)}})},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,9600,7070,5134,3737,1614],()=>a(44219));module.exports=s})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},90378:(e,t,a)=>{a(29021);let s=a(89545),r=a(22373),l=a(67216),n=a(1231),i=a(88896);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:o,useLocal:d}){let u;let c=!!d||!!a?.match(/^datasquirel$/),m=d?i:c?l:n;try{u=e&&t&&Array.isArray(t)&&t[0]?c?await m(e,t):await m({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):c?await m(e):await m({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},1231:(e,t,a)=>{let s=a(29021);a(33873);let r=a(9973),l=a(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((o,d)=>{let u=!!e?.match(/full.access|^fa$/i);try{function c(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),o({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}n=u?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),i&&Array.isArray(i)&&i[0]?n.query(a,i).then(c).catch(m):n.query(a).then(c).catch(m)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},88896:(e,t,a)=>{let s=a(9973),r=a(31976);async function l(...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:r()},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}}}e.exports=l},12403:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{AddNewDbUserContext:()=>w,default:()=>b,getServerSideProps:()=>y});var r=a(8732),l=a(82015),n=a.n(l),i=a(95222),o=a(20048),d=a.n(o),u=a(16975),c=a(90378),m=a.n(c),p=a(64098),g=a(31651),h=a.n(g),x=a(67216),f=a.n(x),_=e([u,p]);[u,p]=_.then?(await _)():_;let S=a(29021),w=n().createContext({});function b({user:e,database:t,table:a,query:s,confirmedDelegetedUser:l}){let n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Users | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,r.jsx)(p.A,{database:t,query:s,confirmedDelegetedUser:l,user:e}),children:(0,r.jsx)(w.Provider,{value:{user:e,database:t,table:a,query:s,confirmedDelegetedUser:l},children:(0,r.jsx)(u.A,{})})})}async function y({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await h()({request:e,user:s,databaseSlug:a.single,query:a});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:n}=r,i=await f()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!i||!i[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let o=JSON.parse(S.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 m()({database:i[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:u}),{props:{user:s,database:i[0],table:u||{},query:a,confirmedDelegetedUser:r}}}s()}catch(e){s(e)}})},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")},81630:e=>{e.exports=require("http")},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),s=t.X(0,[883,9821,9600,7070,5134,3737,1614],()=>a(44219));module.exports=s})(); \ 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 a299227..dda08b2 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},27118:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>v,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>g});var i=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),u=t(48225),d=t.n(u),c=t(27825),_=t.n(c),p=t(51348),m=t.n(p),f=t(47670),E=t.n(f);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await o()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=_().cloneDeep(e.body),i=s.inviting_user_id,a=s.invited_user_email,n=s.database_access,l=s.priviledge;try{let e=await m()("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 E()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:l,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 m()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,a]);let o=await m()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await m()(`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(81630);let s=t(51348),i=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(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=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({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"],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 i=`🚀 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},27118:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>v,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>g});var i=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),u=t(48225),d=t.n(u),_=t(27825),c=t.n(_),p=t(51348),m=t.n(p),f=t(47670),E=t.n(f);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await o()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=c().cloneDeep(e.body),i=s.inviting_user_id,a=s.invited_user_email,n=s.database_access,l=s.priviledge;try{let e=await m()("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 E()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:l,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 m()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,a]);let o=await m()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await m()(`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(81630);let s=t(51348),i=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let _=JSON.parse(d);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=l},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({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"],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 i=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` 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 c56051e..2a8398f 100644 --- a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},81764:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>c,routeModule:()=>p});var i={};t.r(i),t.d(i,{default:()=>_});var s=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),d=t(44767),u=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await o()(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 u()({query:e.body.query,user:t});r.json({success:!0,result:i})}let c=(0,n.M)(i,"default"),m=(0,n.M)(i,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},6420:(e,r,t)=>{t(81630);let i=t(51348),s=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=s({encryptedString:e.cookies[o]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=l},44767:(e,r,t)=>{let i=t(48225),s=t(51348),a=t(47670),n=t(44900);e.exports=async function({query:e,user:r,useLocal:t}){try{let i=t?n:s,{invite:l,database_access:o,priviledge:d,email:u}=e,_=[l,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 m=[l],p=await i("SELECT first_name,last_name,email FROM users WHERE id=?",m);if(p?.[0]){let e=await i("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[l,r.id,u]);if(e?.[0])console.log("User already added");else{a({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:l,invited_user_id:r.id,database_access:o,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 i("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[l,u]);if(await i("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[l,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:s,csrfCookieName:a+=i}}},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,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 s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},81764:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>c,routeModule:()=>p});var i={};t.r(i),t.d(i,{default:()=>_});var s=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),d=t(44767),u=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await o()(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 u()({query:e.body.query,user:t});r.json({success:!0,result:i})}let c=(0,n.M)(i,"default"),m=(0,n.M)(i,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},6420:(e,r,t)=>{t(81630);let i=t(51348),s=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=s({encryptedString:e.cookies[o]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=l},44767:(e,r,t)=>{let i=t(48225),s=t(51348),a=t(47670),n=t(44900);e.exports=async function({query:e,user:r,useLocal:t}){try{let i=t?n:s,{invite:l,database_access:o,priviledge:d,email:u}=e,_=[l,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 m=[l],p=await i("SELECT first_name,last_name,email FROM users WHERE id=?",m);if(p?.[0]){let e=await i("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[l,r.id,u]);if(e?.[0])console.log("User already added");else{a({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:l,invited_user_id:r.id,database_access:o,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 i("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[l,u]);if(await i("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[l,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),{keyCookieName:a,csrfCookieName:n+=i}}},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,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 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/addApiKey.js b/dsql-app/.local_dist/server/pages/api/addApiKey.js index dc7eba1..ee63da4 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")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},87256:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>y});var a=t(89947),n=t(2706),i=t(96762),o=t(20503),l=t.n(o),u=t(48225),c=t.n(u),d=t(6420),p=t.n(d),f=t(47670),_=t.n(f);let m=t(29021);t(33873);let{execSync:S}=t(79646),g=t(47795);async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:a,api_key_scope:n,target_database:i,target_table:o}=e.body;if(!s?.match(/./)||!a?.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");m.existsSync(e)||m.mkdirSync(e,{recursive:!0});let u=g.generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),c={user_id:t.id,date_code:Date.now(),sign:u,target_database:i,target_table:o};"fullAccess"==n&&(c={...c,full_access:!0});let d=l()({data:JSON.stringify(c)});if(!d)return r.json({success:!1,msg:"Couldn't encrypt API key"});let p=l()({data:d}),f={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:a,key:p,scope:n}};u&&(f.data.csrf=u);let S=await _()(f);if(!S.insertId)throw Error(S?.error||"Api Key Couldn't be added");m.writeFileSync(`${e}/${u}`,JSON.stringify(c),"utf-8"),r.json({success:!0})}catch(e){c()({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"),h=(0,i.M)(s,"config"),v=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=i();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let i=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 a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},87256:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>y});var n=t(89947),i=t(2706),a=t(96762),o=t(20503),l=t.n(o),u=t(48225),c=t.n(u),d=t(6420),p=t.n(d),_=t(47670),f=t.n(_);let m=t(29021);t(33873);let{execSync:S}=t(79646),g=t(47795);async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:n,api_key_scope:i,target_database:a,target_table:o}=e.body;if(!s?.match(/./)||!n?.match(/./)||!i?.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");m.existsSync(e)||m.mkdirSync(e,{recursive:!0});let u=g.generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),c={user_id:t.id,date_code:Date.now(),sign:u,target_database:a,target_table:o};"fullAccess"==i&&(c={...c,full_access:!0});let d=l()({data:JSON.stringify(c)});if(!d)return r.json({success:!1,msg:"Couldn't encrypt API key"});let p=l()({data:d}),_={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:n,key:p,scope:i}};u&&(_.data.csrf=u);let S=await f()(_);if(!S.insertId)throw Error(S?.error||"Api Key Couldn't be added");m.writeFileSync(`${e}/${u}`,JSON.stringify(c),"utf-8"),r.json({success:!0})}catch(e){c()({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"),h=(0,a.M)(s,"config"),v=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),a=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=a();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:i,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}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}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` -IP: ${o}`),a+=` -Date: ${i.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",` +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: ${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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({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,l=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=a("aes-192-cbc",s(i,o,l),n.alloc(16,0));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,[4050],()=>t(87256));module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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 u=n("aes-192-cbc",s(a,o,l),i.alloc(16,0));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,[4050],()=>t(87256));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 a41a707..1cff940 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={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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},49915:(e,r,s)=>{s.r(r),s.d(r,{config:()=>m,default:()=>f,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>_});var a=s(89947),i=s(2706),n=s(96762),o=s(14533),l=s.n(o),u=s(6420),d=s.n(u),c=s(47670),p=s.n(c);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await d()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await p()({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=l()({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 f=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),S=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72835),i=s(29021),n=s(31341);async function o(e,r,s,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let d=a({encryptedString:e.cookies[l]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=({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,o=s||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 u=a("aes-192-cbc",t(n,o,l),i.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,s)=>{let{createHmac:t}=s(55511);e.exports=function({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=t("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,[4050],()=>s(49915));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},49915:(e,r,s)=>{s.r(r),s.d(r,{config:()=>m,default:()=>f,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>_});var a=s(89947),i=s(2706),n=s(96762),o=s(14533),l=s.n(o),u=s(6420),d=s.n(u),c=s(47670),p=s.n(c);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await d()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await p()({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=l()({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 f=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),S=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72835),i=s(29021),n=s(31341);async function o(e,r,s,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let d=a({encryptedString:e.cookies[l]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=o},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),{keyCookieName:i,csrfCookieName:n+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=({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,o=s||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 u=a("aes-192-cbc",t(n,o,l),i.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,s)=>{let{createHmac:t}=s(55511);e.exports=function({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=t("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,[4050],()=>s(49915));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 b39fc2c..b973b03 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")},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")},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}}})},68336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>S,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),i=t(96762),a=t(33873),c=t.n(a),u=t(6420),l=t.n(u),p=t(80304),f=t.n(p);let d=t(29021);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:s}=f()(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 o=c().join(n,`images/user-images/user-${t.id}/`)+s;if(d.existsSync(o))return r.json({success:!1});d.mkdirSync(o),r.json({success:!0})}let S=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let p=JSON.parse(l);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${f}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},80304:(e,r,t)=>{let s=t(27825);function n(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 o(e,r);if("object"==typeof e&&Array.isArray(e))return i(e,r);let s=e;return t&&(s=e.toString().replace(t,"")),r||(s=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),s=s.replace(/(?{let s=t[e];if(!s){delete t[e];return}"string"==typeof s||"number"==typeof s?t[e]=n(s,r):"object"!=typeof s||Array.isArray(s)?"object"==typeof s&&Array.isArray(s)&&(t[e]=i(s,r)):t[e]=o(s,r)}),t}function i(e,r){let t=s.cloneDeep(e);return t.forEach((e,s)=>{if(!e){t.splice(s,1);return}"string"==typeof e||"number"==typeof e?t[s]=n(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[s]=i(e,r)):t[s]=o(e,r)}),t}e.exports=n},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=68336);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")},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")},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}}})},68336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>S,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(33873),c=t.n(a),u=t(6420),l=t.n(u),p=t(80304),f=t.n(p);let _=t(29021);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:s}=f()(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 o=c().join(n,`images/user-images/user-${t.id}/`)+s;if(_.existsSync(o))return r.json({success:!1});_.mkdirSync(o),r.json({success:!0})}let S=(0,i.M)(s,"default"),E=(0,i.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let p=JSON.parse(l);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${f}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},80304:(e,r,t)=>{let s=t(27825);function n(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 o(e,r);if("object"==typeof e&&Array.isArray(e))return i(e,r);let s=e;return t&&(s=e.toString().replace(t,"")),r||(s=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),s=s.replace(/(?{let s=t[e];if(!s){delete t[e];return}"string"==typeof s||"number"==typeof s?t[e]=n(s,r):"object"!=typeof s||Array.isArray(s)?"object"==typeof s&&Array.isArray(s)&&(t[e]=i(s,r)):t[e]=o(s,r)}),t}function i(e,r){let t=s.cloneDeep(e);return t.forEach((e,s)=>{if(!e){t.splice(s,1);return}"string"==typeof e||"number"==typeof e?t[s]=n(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[s]=i(e,r)):t[s]=o(e,r)}),t}e.exports=n},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=68336);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 078fe69..ed33973 100644 --- a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js @@ -1,16 +1,16 @@ -"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")},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")},81630:e=>{e.exports=require("http")},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}}})},25858:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),o=t(2706),a=t(96762),i=t(48225),l=t.n(i),c=t(6420),u=t.n(c);let p=t(29021);t(33873);let{execSync:d}=t(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:n,paradigm:o,platforms:a}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;p.existsSync(e)||p.writeFileSync(e,"{}","utf8");let n=JSON.parse(p.readFileSync(e,"utf8")),i=n[s];i||(i={social:[]},n[s]=i);let l=i.social;l=[];for(let e=0;e{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 n=`🚀 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")},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")},81630:e=>{e.exports=require("http")},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}}})},25858:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>_,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),o=t(2706),i=t(96762),a=t(48225),l=t.n(a),c=t(6420),u=t.n(c);let p=t(29021);t(33873);let{execSync:d}=t(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:n,paradigm:o,platforms:i}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;p.existsSync(e)||p.writeFileSync(e,"{}","utf8");let n=JSON.parse(p.readFileSync(e,"utf8")),a=n[s];a||(a={social:[]},n[s]=a);let l=a.social;l=[];for(let e=0;e{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` -Date: ${a.toDateString()} +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${i.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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=25858);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,l=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 c=n("aes-192-cbc",s(i,a,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=25858);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 3000fa1..87de27a 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={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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},14373:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),i=t(2706),o=t(96762),l=t(96771),n=t.n(l),d=t(47670),u=t.n(d);t(51348),t(21339);let c=t(73677),p=t(39831),_=t(48225),g=t(6420);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await g(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,payload:a,tableSchema:i,dbSlug:o,dbId:l,delegated:d}=e.body;try{let d=await p({databaseSlug:o,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:o,table:s,dbId:l,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${o}`:`datasquirel_user_${t.id}_${o}`,g=await u()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:s,data:a,tableSchema:i});if(!g.insertId)throw console.log("Table Insertion Failed =>",g),Error(g?.error||"Table Insertion Failed");await n()({dbName:_,entryId:g.insertId,entryOrder:a.order,tableName:s,tableSchema:i}),r.json({success:!0})}catch(e){_({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 m=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:i,priviledgeRegex:o,dbId:l}){let n,d;try{r?.delegated?(n=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,i]),d=n[0]?.priviledge?.match(o)):(n=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,i,l]),d=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!n&&!!n[0]&&!!d}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let i=t.id,o=null;if(!a?.delegated)return{dbUserId:i};let l=a.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[d]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:i=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:i}}catch(e){return null}}},96771:(e,r,t)=>{let s=t(21339);e.exports=async function({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:i}){try{if(i.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let i=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!i?.[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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),i=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:n,csrfCookieName:d}=o();if(!e.cookies?.[n]?.match(/./))return null;let u=a({encryptedString:e.cookies[n]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:i}){let o=new Date,l=(()=>{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 a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=460,e.ids=[460],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},14373:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>g});var a=t(89947),i=t(2706),o=t(96762),l=t(96771),n=t.n(l),d=t(47670),u=t.n(d);t(51348),t(21339);let c=t(73677),p=t(39831),_=t(48225),E=t(6420);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await E(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,payload:a,tableSchema:i,dbSlug:o,dbId:l,delegated:d}=e.body;try{let d=await p({databaseSlug:o,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:o,table:s,dbId:l,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${o}`:`datasquirel_user_${t.id}_${o}`,E=await u()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:s,data:a,tableSchema:i});if(!E.insertId)throw console.log("Table Insertion Failed =>",E),Error(E?.error||"Table Insertion Failed");await n()({dbName:_,entryId:E.insertId,entryOrder:a.order,tableName:s,tableSchema:i}),r.json({success:!0})}catch(e){_({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 m=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:i,priviledgeRegex:o,dbId:l}){let n,d;try{r?.delegated?(n=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,i]),d=n[0]?.priviledge?.match(o)):(n=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,i,l]),d=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!n&&!!n[0]&&!!d}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let i=t.id,o=null;if(!a?.delegated)return{dbUserId:i};let l=a.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[d]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:i=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:i}}catch(e){return null}}},96771:(e,r,t)=>{let s=t(21339);e.exports=async function({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:i}){try{if(i.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let i=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!i?.[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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),i=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:n,csrfCookieName:d}=o();if(!e.cookies?.[n]?.match(/./))return null;let u=a({encryptedString:e.cookies[n]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),{keyCookieName:i,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:i}){let o=new Date,l=(()=>{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 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/addUserMedia.js b/dsql-app/.local_dist/server/pages/api/addUserMedia.js index 7f75a62..04bc859 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=979,e.ids=[979],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")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},93851:(e,r,t)=>{t.r(r),t.d(r,{config:()=>$,default:()=>b,routeModule:()=>x});var a={};t.r(a),t.d(a,{config:()=>y,default:()=>E});var i=t(89947),s=t(2706),l=t(96762),n=t(47670),o=t.n(n),u=t(10701),d=t.n(u),c=t(48227),m=t.n(c),p=t(48225),_=t.n(p),f=t(6420),h=t.n(f);let g=t(29021),S=t(33873),{execSync:v}=t(79646),y={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await h()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{media:i}=a;console.log(a.type);let s=a.folder,l=a.type;"production".match(/production/);let 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"});if(s){let e=S.join(n,`images/user-images/user-${t.id}/${s}`);g.existsSync(e)||g.mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${s}`;g.existsSync(r)||g.mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r{let a=t(9288),i=t(48225),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:l,thumbnailSize:n,folder:o,isPrivate:u}){try{let i=Buffer.from(e,"base64"),d=n?parseInt(n.toString()):400,c=a(i),m=a(i),p=s({isPrivate:u,user:t,folder:o});if(!p)return null;let{fileRootPath:_,urlRootPath:f,relativePath:h}=p,{width:g,height:S,format:v}=await c.metadata(),y=l||v;g&&S&&g>1800&&c.resize(1800,Math.round(1800/g*S),{fit:"cover"}),c.toFormat(y,{quality:80}),await c.metadata();let E=`${r}.${y}`;if(await c.toFile(_+E),g&&S&&g>d){let e=d/g;m.resize(d,Math.round(S*e),{fit:"cover"})}else g&&S&&m.resize(150,Math.round(150/g*S),{fit:"cover"});m.toFormat(y,{quality:80});let b=`${r}_thumbnail.${y}`;return await m.toFile(_+b),{urlPath:f+E,urlThumbnailPath:f+b,urlRelativePath:h+E,urlThumbnailRelativePath:h+b}}catch(e){return console.log("Write Image to Disk error =>",e.message),i({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let a=t(29021),i=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:l}){"production".match(/production/);let n=r?.id||r?.user_id,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${n}/${t?t+"/":""}`:`/images/user-images/user-${n}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/${t?t+"/":""}`:i.join(o,u);return a.existsSync(d)||l||a.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},6420:(e,r,t)=>{t(81630);let a=t(51348),i=t(72835),s=t(29021),l=t(31341);async function n(e,r,t,n){let{keyCookieName:o,csrfCookieName:u}=l();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${m}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await 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"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(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=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let s=r;return e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),{keyCookieName:i,csrfCookieName:s+=a}}},48225:(e,r,t)=>{let a=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:s}){let l=new Date,n=(()=>{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 i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=979,e.ids=[979],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")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},93851:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>$,routeModule:()=>N});var a={};t.r(a),t.d(a,{config:()=>E,default:()=>y});var i=t(89947),s=t(2706),l=t(96762),n=t(47670),o=t.n(n),u=t(10701),d=t.n(u),c=t(48227),m=t.n(c),p=t(48225),_=t.n(p),f=t(6420),h=t.n(f);let S=t(29021),g=t(33873),{execSync:v}=t(79646),E={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await h()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{media:i}=a;console.log(a.type);let s=a.folder,l=a.type;"production".match(/production/);let 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"});if(s){let e=g.join(n,`images/user-images/user-${t.id}/${s}`);S.existsSync(e)||S.mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${s}`;S.existsSync(r)||S.mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r{let a=t(9288),i=t(48225),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:l,thumbnailSize:n,folder:o,isPrivate:u}){try{let i=Buffer.from(e,"base64"),d=n?parseInt(n.toString()):400,c=a(i),m=a(i),p=s({isPrivate:u,user:t,folder:o});if(!p)return null;let{fileRootPath:_,urlRootPath:f,relativePath:h}=p,{width:S,height:g,format:v}=await c.metadata(),E=l||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(_+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 $=`${r}_thumbnail.${E}`;return await m.toFile(_+$),{urlPath:f+y,urlThumbnailPath:f+$,urlRelativePath:h+y,urlThumbnailRelativePath:h+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),i({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let a=t(29021),i=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:l}){"production".match(/production/);let n=r?.id||r?.user_id,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${n}/${t?t+"/":""}`:`/images/user-images/user-${n}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/${t?t+"/":""}`:i.join(o,u);return a.existsSync(d)||l||a.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},6420:(e,r,t)=>{t(81630);let a=t(51348),i=t(72835),s=t(29021),l=t(31341);async function n(e,r,t,n){let{keyCookieName:o,csrfCookieName:u}=l();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${m}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await 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"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),s=r;e?.userId&&(s+=`user_${e.userId}_`),i&&(s+=`${i}_`),s+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:s,csrfCookieName:l+=a}}},48225:(e,r,t)=>{let a=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:s}){let l=new Date,n=(()=>{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 i=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/addUserTable.js b/dsql-app/.local_dist/server/pages/api/addUserTable.js index b721335..63639bb 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={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},13441:(e,a,t)=>{t.r(a),t.d(a,{config:()=>x,default:()=>D,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>F});var r=t(89947),l=t(2706),d=t(96762),i=t(48225),n=t.n(i),u=t(6420),o=t.n(u),b=t(2258),c=t(27825),_=t.n(c),m=t(78634),f=t(51348),p=t.n(f),h=t(47670),N=t.n(h),S=t(19261),g=t.n(S);t(29021),t(33873);let{execSync:E}=t(79646);async function F(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let t=await o()(e,a,!0);if(!t)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:s}=e.body,r=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),l=e.body.dbSlug,d=e.body.dbId,i=e.body.parentDatabase,u=e.body.parentTable;try{let e=(0,b.default)({userId:t.id});if(!e)throw Error("No User Schema found!");let o=e.findIndex(e=>e.dbFullName===r),c=e[o];if(!c)throw Error("No Target Database Found!");let f=c.tables.findIndex(e=>e.tableName===s.tableName);if(f>=0?e[o].tables[f]=s:e[o].tables.push(s),s?.childTable){let a=e.find(e=>e.dbFullName===i),t=a?.tables.find(e=>{if(e.tableName===u)return!0});if(!t)throw Error("Child Table Parent Doesn't Exist!");t.childrenTables?.[0]?t.childrenTables.push({dbNameFull:r,tableName:s.tableName,tableNameFull:s.tableNameFull}):t.childrenTables=[{dbNameFull:r,tableName:s.tableName,tableNameFull:s.tableFullName}]}if(c.childrenDatabases)for(let a=0;ae.dbFullName===r.dbFullName);e[a]&&(e[a].tables=_().cloneDeep(c.tables));let l=await p()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[t.id,r.dbFullName]),d=await p()("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[l[0].id,t.id,s.tableName]);if(d?.[0])continue;await N()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:l[0].id,db_slug:l[0].db_slug,table_name:s.tableFullName,table_slug:s.tableName}})}catch(e){n()({component:"/api/addUserTable/lines-124-140",message:e.message,user:t})}}(0,m.default)({userId:t.id,schemaData:e});let h={user_id:t.id,db_id:d,db_slug:l,table_name:s.tableFullName,table_slug:s.tableName};s?.childTable&&(h.child_table="1",h.child_table_parent_database=i,h.child_table_parent_table=u),await N()({dbFullName:"datasquirel",tableName:"user_database_tables",data:h}),await g()({userId:t.id,targetDatabase:r}),a.json({success:!0})}catch(e){console.log(e.message),n()({component:"/api/addUserTable/main-catch-error",message:e.message,user:t}),a.json({success:!1,msg:"Database Files could not be written!"})}}let D=(0,d.M)(s,"default"),x=(0,d.M)(s,"config"),v=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:s})},6420:(e,a,t)=>{t(81630);let s=t(51348),r=t(72835),l=t(29021),d=t(31341);async function i(e,a,t,i){let{keyCookieName:n,csrfCookieName:u}=d();if(!e.cookies?.[n]?.match(/./))return null;let o=r({encryptedString:e.cookies[n]});if(!o)return null;let b=JSON.parse(o);if(!b.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${b.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${c}/${b.csrf_k}`))return null;if(0==b.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${b.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return b?.date&&Date.now()-b.date>6048e5?null:b}e.exports=i},31341:e=>{e.exports=function(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=a;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let l=a;return e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),{keyCookieName:r,csrfCookieName:l+=s}}},2258:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});let s=t(48225),r=t(29021),l=t(33873);function d({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(a,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},78634:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});let s=t(48225),r=t(29021),l=t(33873);function d({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return r.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return s({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[4050,2451],()=>t(13441));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},13441:(e,a,t)=>{t.r(a),t.d(a,{config:()=>v,default:()=>F,routeModule:()=>x});var s={};t.r(s),t.d(s,{default:()=>D});var r=t(89947),l=t(2706),d=t(96762),i=t(48225),n=t.n(i),u=t(6420),o=t.n(u),b=t(2258),c=t(27825),_=t.n(c),m=t(78634),f=t(51348),p=t.n(f),N=t(47670),h=t.n(N),S=t(19261),g=t.n(S);t(29021),t(33873);let{execSync:E}=t(79646);async function D(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let t=await o()(e,a,!0);if(!t)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:s}=e.body,r=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),l=e.body.dbSlug,d=e.body.dbId,i=e.body.parentDatabase,u=e.body.parentTable;try{let e=(0,b.default)({userId:t.id});if(!e)throw Error("No User Schema found!");let o=e.findIndex(e=>e.dbFullName===r),c=e[o];if(!c)throw Error("No Target Database Found!");let f=c.tables.findIndex(e=>e.tableName===s.tableName);if(f>=0?e[o].tables[f]=s:e[o].tables.push(s),s?.childTable){let a=e.find(e=>e.dbFullName===i),t=a?.tables.find(e=>{if(e.tableName===u)return!0});if(!t)throw Error("Child Table Parent Doesn't Exist!");t.childrenTables?.[0]?t.childrenTables.push({dbNameFull:r,tableName:s.tableName,tableNameFull:s.tableNameFull}):t.childrenTables=[{dbNameFull:r,tableName:s.tableName,tableNameFull:s.tableFullName}]}if(c.childrenDatabases)for(let a=0;ae.dbFullName===r.dbFullName);e[a]&&(e[a].tables=_().cloneDeep(c.tables));let l=await p()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[t.id,r.dbFullName]),d=await p()("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[l[0].id,t.id,s.tableName]);if(d?.[0])continue;await h()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:l[0].id,db_slug:l[0].db_slug,table_name:s.tableFullName,table_slug:s.tableName}})}catch(e){n()({component:"/api/addUserTable/lines-124-140",message:e.message,user:t})}}(0,m.default)({userId:t.id,schemaData:e});let N={user_id:t.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=i,N.child_table_parent_table=u),await h()({dbFullName:"datasquirel",tableName:"user_database_tables",data:N}),await g()({userId:t.id,targetDatabase:r}),a.json({success:!0})}catch(e){console.log(e.message),n()({component:"/api/addUserTable/main-catch-error",message:e.message,user:t}),a.json({success:!1,msg:"Database Files could not be written!"})}}let F=(0,d.M)(s,"default"),v=(0,d.M)(s,"config"),x=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:s})},6420:(e,a,t)=>{t(81630);let s=t(51348),r=t(72835),l=t(29021),d=t(31341);async function i(e,a,t,i){let{keyCookieName:n,csrfCookieName:u}=d();if(!e.cookies?.[n]?.match(/./))return null;let o=r({encryptedString:e.cookies[n]});if(!o)return null;let b=JSON.parse(o);if(!b.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${b.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${c}/${b.csrf_k}`))return null;if(0==b.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${b.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return b?.date&&Date.now()-b.date>6048e5?null:b}e.exports=i},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=a;e?.userId&&(l+=`user_${e.userId}_`),r&&(l+=`${r}_`),l+=t;let d=a;return e?.userId&&(d+=`user_${e.userId}_`),r&&(d+=`${r}_`),{keyCookieName:l,csrfCookieName:d+=s}}},2258:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});let s=t(48225),r=t(29021),l=t(33873);function d({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(a,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},78634:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});let s=t(48225),r=t(29021),l=t(33873);function d({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return r.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return s({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[4050,2451],()=>t(13441));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 f59c397..3b19e8c 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={27825:e=>{e.exports=require("lodash")},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")},33873:e=>{e.exports=require("path")},21110:(e,s,t)=>{t.r(s),t.d(s,{config:()=>h,default:()=>g,routeModule:()=>E});var a={};t.r(a),t.d(a,{default:()=>S});var r=t(89947),i=t(2706),n=t(96762),l=t(59474),o=t.n(l),d=t(6420),u=t.n(d),c=t(47670),_=t.n(c),p=t(51348),m=t.n(p),f=t(14533),v=t.n(f);async function S(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let t=await u()(e,s,!0);if(!t)return s.json({success:!1,msg:"Unauthorized"});let a=e.body,r=a.paradigm;if(r?.match(/database/)){let e=await _()({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(a),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=a[e])}),s.user_id=t.id,s.password=v()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:a.password}),s.user_type="database",s.email=a.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(t?.email===a.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await m()("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[a.email_address,t.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await _()({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:t.id,invited_user_email:a.email_address,database_access:a.database_access,priviledge:a.priviledge,db_tables_data:a.db_tables}});let r=await o()({to:a.email_address,subject:`${t.first_name} ${t.last_name} Invited you`,text:`${t.first_name} ${t.last_name} has invited you to manage a datasquirel account`,html:` +"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={27825:e=>{e.exports=require("lodash")},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")},33873:e=>{e.exports=require("path")},21110:(e,s,t)=>{t.r(s),t.d(s,{config:()=>h,default:()=>g,routeModule:()=>E});var r={};t.r(r),t.d(r,{default:()=>S});var a=t(89947),i=t(2706),n=t(96762),l=t(59474),o=t.n(l),d=t(6420),u=t.n(d),c=t(47670),_=t.n(c),p=t(51348),m=t.n(p),f=t(14533),v=t.n(f);async function S(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let t=await u()(e,s,!0);if(!t)return s.json({success:!1,msg:"Unauthorized"});let r=e.body,a=r.paradigm;if(a?.match(/database/)){let e=await _()({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(r),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=r[e])}),s.user_id=t.id,s.password=v()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:r.password}),s.user_type="database",s.email=r.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(t?.email===r.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await m()("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[r.email_address,t.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await _()({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:t.id,invited_user_email:r.email_address,database_access:r.database_access,priviledge:r.priviledge,db_tables_data:r.db_tables}});let a=await o()({to:r.email_address,subject:`${t.first_name} ${t.last_name} Invited you`,text:`${t.first_name} ${t.last_name} has invited you to manage a datasquirel account`,html:`

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

- Accept Invitation - `});s.json({success:!!r?.accepted,msg:"This is an invitation request"})}}let g=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),E=new r.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:a})},6420:(e,s,t)=>{t(81630);let a=t(51348),r=t(72835),i=t(29021),n=t(31341);async function l(e,s,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=r({encryptedString:e.cookies[o]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(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=s;e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),r+=t;let i=s;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:r,csrfCookieName:i+=a}}},59474:(e,s,t)=>{let a=t(29021),r=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:s,text:t,html:i,alias:n}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(n?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a.existsSync("./email/index.html"))return;let d=a.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let a={};a.from=`"Datasquirel" <${o}>`,a.sender=o,n&&(a["replyTo "]=o),a.to=e,a.subject=s,a.text=t,a.html=d,l=await r.sendMail(a)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},72835:(e,s,t)=>{let{scryptSync:a,createDecipheriv:r}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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 d=r("aes-192-cbc",a(n,l,o),i.alloc(16,0));try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},14533:(e,s,t)=>{let{createHmac:a}=t(55511);e.exports=function({password:e,encryptionKey:s}){let t=s||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=a("sha512",t);return r.update(e),r.digest("base64")}}};var s=require("../../webpack-api-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[4050],()=>t(21110));module.exports=a})(); \ No newline at end of file + Accept Invitation + `});s.json({success:!!a?.accepted,msg:"This is an invitation request"})}}let g=(0,n.M)(r,"default"),h=(0,n.M)(r,"config"),E=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:r})},6420:(e,s,t)=>{t(81630);let r=t(51348),a=t(72835),i=t(29021),n=t(31341);async function l(e,s,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=a({encryptedString:e.cookies[o]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await r(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=s;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=t;let n=s;return e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),{keyCookieName:i,csrfCookieName:n+=r}}},59474:(e,s,t)=>{let r=t(29021),a=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:s,text:t,html:i,alias:n}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(n?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!r.existsSync("./email/index.html"))return;let d=r.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let r={};r.from=`"Datasquirel" <${o}>`,r.sender=o,n&&(r["replyTo "]=o),r.to=e,r.subject=s,r.text=t,r.html=d,l=await a.sendMail(r)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},72835:(e,s,t)=>{let{scryptSync:r,createDecipheriv:a}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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 d=a("aes-192-cbc",r(n,l,o),i.alloc(16,0));try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},14533:(e,s,t)=>{let{createHmac:r}=t(55511);e.exports=function({password:e,encryptionKey:s}){let t=s||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=r("sha512",t);return a.update(e),a.digest("base64")}}};var s=require("../../webpack-api-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[4050],()=>t(21110));module.exports=r})(); \ 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 85bdb52..41ba517 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={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},13461:(e,a,t)=>{t.r(a),t.d(a,{config:()=>y,default:()=>T,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>R});var l=t(89947),r=t(2706),i=t(96762),d=t(51348),u=t.n(d),n=t(48225),o=t.n(n),f=t(6420),p=t.n(f),m=t(47670),_=t.n(m),c=t(19261),b=t.n(c);let N=t(29021);t(33873);let{execSync:A}=t(79646);async function R(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await p()(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:l,dbSlug:r,dbId:i}=e.body,d=t(8693),n=t(95610),f=[...n.slice(0,2),...d.fields,...n.slice(2)];d.fields=[...f];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,n=JSON.parse(N.readFileSync(t,"utf8")),f=n.filter(e=>e.dbFullName===l)[0],p=f.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(p?.[0]&&"number"==typeof e?f.tables[e]=d:f.tables.push(d),f.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=f.tables;let e=await u()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[s.id,a.dbFullName]);await _()({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){o()({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:s})}}N.writeFileSync(`${t}`,JSON.stringify(n),"utf8"),await _()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:i,db_slug:r,table_name:"Users",table_slug:"users"}});let m=l.replace(/[^a-z\_0-9]/g,"");await b()({userId:s.id,targetDatabase:m}),a.json({success:!0})}catch(e){o()({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:s}),a.json({success:!1,msg:"Database Files could not be written!"})}}let T=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),g=new l.PagesAPIRouteModule({definition:{kind:r.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,a,t)=>{t(81630);let s=t(51348),l=t(72835),r=t(29021),i=t(31341);async function d(e,a,t,d){let{keyCookieName:u,csrfCookieName:n}=i();if(!e.cookies?.[u]?.match(/./))return null;let o=l({encryptedString:e.cookies[u]});if(!o)return null;let f=JSON.parse(o);if(!f.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${f.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!r.existsSync(`${p}/${f.csrf_k}`))return null;if(0==f.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${f.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return f?.date&&Date.now()-f.date>6048e5?null:f}e.exports=d},31341:e=>{e.exports=function(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",l=a;e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),l+=t;let r=a;return e?.userId&&(r+=`user_${e.userId}_`),e?.database&&(r+=`${e.database}_`),{keyCookieName:l,csrfCookieName:r+=s}}},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)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"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,[4050,2451],()=>t(13461));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},13461:(e,a,t)=>{t.r(a),t.d(a,{config:()=>y,default:()=>T,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>R});var l=t(89947),r=t(2706),i=t(96762),d=t(51348),u=t.n(d),n=t(48225),o=t.n(n),p=t(6420),f=t.n(p),_=t(47670),m=t.n(_),c=t(19261),b=t.n(c);let N=t(29021);t(33873);let{execSync:A}=t(79646);async function R(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await f()(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:l,dbSlug:r,dbId:i}=e.body,d=t(8693),n=t(95610),p=[...n.slice(0,2),...d.fields,...n.slice(2)];d.fields=[...p];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,n=JSON.parse(N.readFileSync(t,"utf8")),p=n.filter(e=>e.dbFullName===l)[0],f=p.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(f?.[0]&&"number"==typeof e?p.tables[e]=d:p.tables.push(d),p.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=p.tables;let e=await u()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[s.id,a.dbFullName]);await m()({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){o()({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:s})}}N.writeFileSync(`${t}`,JSON.stringify(n),"utf8"),await m()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:i,db_slug:r,table_name:"Users",table_slug:"users"}});let _=l.replace(/[^a-z\_0-9]/g,"");await b()({userId:s.id,targetDatabase:_}),a.json({success:!0})}catch(e){o()({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:s}),a.json({success:!1,msg:"Database Files could not be written!"})}}let T=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),g=new l.PagesAPIRouteModule({definition:{kind:r.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,a,t)=>{t(81630);let s=t(51348),l=t(72835),r=t(29021),i=t(31341);async function d(e,a,t,d){let{keyCookieName:u,csrfCookieName:n}=i();if(!e.cookies?.[u]?.match(/./))return null;let o=l({encryptedString:e.cookies[u]});if(!o)return null;let p=JSON.parse(o);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!r.existsSync(`${f}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=d},31341:e=>{e.exports=function(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",l=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),r=a;e?.userId&&(r+=`user_${e.userId}_`),l&&(r+=`${l}_`),r+=t;let i=a;return e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),{keyCookieName:r,csrfCookieName:i+=s}}},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)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"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,[4050,2451],()=>t(13461));module.exports=s})(); \ 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 cf3a9d4..8512dc8 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")},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")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},96762:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,r){return r in s?s[r]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,r)):"function"==typeof s&&"default"===r?s:void 0}}})},55535:(e,s,r)=>{r.r(s),r.d(s,{config:()=>E,default:()=>D,routeModule:()=>v});var t={};r.r(t),r.d(t,{default:()=>f});var n=r(89947),o=r(2706),c=r(96762),a=r(51348),i=r.n(a),l=r(19131),u=r.n(l);let p=r(29021),_=r(21820),{execSync:d,spawnSync:S}=r(79646);async function f(e,s){if("POST"!==e.method)return s.json({success:!1,msg:"Wrong Method"});let r=await u()(e);if(!r?.logged_in_status)return s.json({success:!1,log:"Unauthorized"});try{let r=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/backups`;p.existsSync(t)||p.mkdirSync(t);let n=Date.now().toString();p.mkdirSync(`${t}/${n}`);let o=await i()("SHOW databases LIKE ?",[`datasquirel_user_${r}_%`]);for(let e=0;e ${i}`;console.log(`addUserBackup.js exe => ${l}`),S(c,["-u",process.env.DSQL_DB_USERNAME,"-h",process.env.DSQL_DB_HOST,`-p${process.env.DSQL_DB_PASSWORD}`,r,">",i],a)}p.copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/main.json`,`${t}/${n}/main.json`),s.json({success:!0})}catch(e){console.log(e.message),s.json({success:!1})}}let D=(0,c.M)(t,"default"),E=(0,c.M)(t,"config"),v=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:t})},19131:(e,s,r)=>{let{IncomingMessage:t}=r(81630),n=r(72835),o=r(31341);e.exports=async function(e){let{keyCookieName:s,csrfCookieName:r}=o(),t=`${s}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=n({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}},31341:e=>{e.exports=function(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",n=s;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let o=s;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=t}}},72835:(e,s,r)=>{let{scryptSync:t,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let c=s||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(!c?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(c,a,i),o.alloc(16,0));try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},51348:(e,s,r)=>{let t=r(9973),n=r(21580),o=t({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:n()}});async function c(...e){try{let s=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=c},21580:(e,s,r)=>{let t=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!t.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,s)=>{var r;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,s,r)=>{e.exports=r(75600)}};var s=require("../../../webpack-api-runtime.js");s.C(e);var r=s(s.s=55535);module.exports=r})(); \ 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")},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")},81630:e=>{e.exports=require("http")},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}}})},55535:(e,r,s)=>{s.r(r),s.d(r,{config:()=>E,default:()=>f,routeModule:()=>v});var t={};s.r(t),s.d(t,{default:()=>D});var n=s(89947),o=s(2706),c=s(96762),a=s(51348),i=s.n(a),l=s(19131),u=s.n(l);let p=s(29021),_=s(21820),{execSync:S,spawnSync:d}=s(79646);async function D(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await u()(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,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;p.existsSync(t)||p.mkdirSync(t);let n=Date.now().toString();p.mkdirSync(`${t}/${n}`);let o=await i()("SHOW databases LIKE ?",[`datasquirel_user_${s}_%`]);for(let e=0;e ${i}`;console.log(`addUserBackup.js exe => ${l}`),d(c,["-u",process.env.DSQL_DB_USERNAME,"-h",process.env.DSQL_DB_HOST,`-p${process.env.DSQL_DB_PASSWORD}`,s,">",i],a)}p.copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,`${t}/${n}/main.json`),r.json({success:!0})}catch(e){console.log(e.message),r.json({success:!1})}}let f=(0,c.M)(t,"default"),E=(0,c.M)(t,"config"),v=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=n({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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:o,csrfCookieName:c+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let c=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=s||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!c?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(c,a,i),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({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:n()}});async function c(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=c},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=55535);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 2273055..bafbeaa 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")},81630:e=>{e.exports=require("http")},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}}})},6126:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>p,routeModule:()=>f});var o={};t.r(o),t.d(o,{default:()=>d});var n=t(89947),s=t(2706),i=t(96762),u=t(19131),a=t.n(u);let{execSync:l}=t(79646),c=t(29021);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await a()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});c.writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let p=(0,i.M)(o,"default"),_=(0,i.M)(o,"config"),f=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:o})},19131:(e,r,t)=>{let{IncomingMessage:o}=t(81630),n=t(72835),s=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=s(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=n({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let u=JSON.parse(i);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let s=r;return e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),{keyCookieName:n,csrfCookieName:s+=o}}},72835:(e,r,t)=>{let{scryptSync:o,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=({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,u=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",o(i,u,a),s.alloc(16,0));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)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=6126);module.exports=t})(); \ 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")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,o){return o in r?r[o]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,o)):"function"==typeof r&&"default"===o?r:void 0}}})},6126:(e,r,o)=>{o.r(r),o.d(r,{config:()=>_,default:()=>p,routeModule:()=>f});var t={};o.r(t),o.d(t,{default:()=>d});var n=o(89947),s=o(2706),i=o(96762),u=o(19131),l=o.n(u);let{execSync:c}=o(79646),a=o(29021);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let o=await l()(e);if(!o?.logged_in_status)return r.json({success:!1,log:"No Logs"});a.writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let p=(0,i.M)(t,"default"),_=(0,i.M)(t,"config"),f=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:t})},19131:(e,r,o)=>{let{IncomingMessage:t}=o(81630),n=o(72835),s=o(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:o}=s(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let i=n({encryptedString:e.cookies[t]});if(!i)return console.log("No user payload found"),null;let u=JSON.parse(i);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",o=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),s=r;e?.userId&&(s+=`user_${e.userId}_`),n&&(s+=`${n}_`),s+=o;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:s,csrfCookieName:i+=t}}},72835:(e,r,o)=>{let{scryptSync:t,createDecipheriv:n}=o(55511),{Buffer:s}=o(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:o})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=o||process.env.DSQL_ENCRYPTION_SALT,l=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",t(i,u,l),s.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var o;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(o||(o={}))},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=6126);module.exports=o})(); \ 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 f87ac6c..0be7c0e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js @@ -1,16 +1,16 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},75865:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>y,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),a=t(96762),i=t(93209),l=t.n(i),c=t(48225),u=t.n(c),d=t(19131),p=t.n(d);let m=t(29021),S=t(21820),{execSync:f}=t(79646);async function _(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await p()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s="./.tmp/backups";m.existsSync(s)||m.mkdirSync("./.tmp/backups");let n=Date.now().toString();m.mkdirSync(`${s}/${n}`);let o=S.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let e={cwd:process.cwd()},t=`${s}/${n}/datasquirel.sql`;S.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.js exe => ${a}`),f(a,e),m.copyFileSync("./jsonData/dbSchemas/main.json",`${s}/${n}/datasquirelSchema.json`),l()({rootFolderPath:`${process.env.DSQL_USER_DB_SCHEMA_PATH}`,destinationFolderPath:`${s}/${n}/userSchemas`}),r.json({success:!0})}catch(e){r.json({success:!1}),u()({component:"/api/admin/createNewBackup/lines-73-90",message:e.message})}}let y=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/createNewBackup",pathname:"/api/admin/createNewBackup",bundlePath:"",filename:""},userland:s})},93209:(e,r,t)=>{let s=t(29021);e.exports=function({rootFolderPath:e,destinationFolderPath:r}){try{return s.mkdirSync(r),function e(r,t){let n=s.readdirSync(r);for(let o=0;o{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=n({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}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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")},81630:e=>{e.exports=require("http")},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}}})},75865:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>y,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),o=t(2706),a=t(96762),l=t(93209),i=t.n(l),c=t(48225),u=t.n(c),p=t(19131),d=t.n(p);let S=t(29021),m=t(21820),{execSync:_}=t(79646);async function f(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await d()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s="./.tmp/backups";S.existsSync(s)||S.mkdirSync("./.tmp/backups");let n=Date.now().toString();S.mkdirSync(`${s}/${n}`);let o=m.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let e={cwd:process.cwd()},t=`${s}/${n}/datasquirel.sql`;m.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.js exe => ${a}`),_(a,e),S.copyFileSync("./jsonData/dbSchemas/main.json",`${s}/${n}/datasquirelSchema.json`),i()({rootFolderPath:`${process.env.DSQL_USER_DB_SCHEMA_PATH}`,destinationFolderPath:`${s}/${n}/userSchemas`}),r.json({success:!0})}catch(e){r.json({success:!1}),u()({component:"/api/admin/createNewBackup/lines-73-90",message:e.message})}}let y=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/createNewBackup",pathname:"/api/admin/createNewBackup",bundlePath:"",filename:""},userland:s})},93209:(e,r,t)=>{let s=t(29021);e.exports=function({rootFolderPath:e,destinationFolderPath:r}){try{return s.mkdirSync(r),function e(r,t){let n=s.readdirSync(r);for(let o=0;o{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[s]});if(!a)return console.log("No user payload found"),null;let l=JSON.parse(a);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}},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,l=(()=>{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 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}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(n+=` +IP: ${l}`),n+=` 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",` +========================================`,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",n),s.appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=75865);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,l,i),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=75865);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js index 5a827ee..9c52fa9 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js +++ b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2927,e.ids=[2927],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},24296:(e,t,a)=>{a.r(t),a.d(t,{config:()=>R,default:()=>w,routeModule:()=>x});var r={};a.r(r),a.d(r,{default:()=>v});var s=a(89947),n=a(2706),l=a(96762),o=a(77509),i=a.n(o),d=a(73921),c=a.n(d),u=a(29131),p=a.n(u),_=a(30573),g=a.n(_),E=a(6983),f=a.n(E),S=a(46238),y=a.n(S),m=a(19131),h=a.n(m);async function v(e,t){if("POST"!==e.method)return t.json({success:!1,msg:"Wrong Method"});let a=await h()(e);if(!a?.logged_in_status)return t.json({success:!1,log:"Unauthorized"});let{action:r}=e.query,s=e.body;try{let e;switch(r){case"add-page":e=await i()({body:s});break;case"update-page":e=await i()({body:s,update:!0});break;case"delete-page":e=await c()({body:s});break;case"get-snippets":e=await p()();break;case"grab-parent-pages":e=await f()({body:s});break;case"get-child-pages":e=await g()({body:s});break;case"persist":e=await y()({body:s})}if(!e)throw Error("Operation failed!");t.json({success:!0,result:e})}catch(e){t.json({success:!1})}}let w=(0,l.M)(r,"default"),R=(0,l.M)(r,"config"),x=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/docs/[action]",pathname:"/api/admin/docs/[action]",bundlePath:"",filename:""},userland:r})},77509:(e,t,a)=>{let r=a(72583),s=a(51348),n=a(47670),l=a(16570);e.exports=async function({body:e,update:t}){let a=e.title.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9\-]/g,""),o=await async function(){if(t)return null;try{return(await s("SELECT page_order FROM docs_pages ORDER BY page_order DESC LIMIT 1"))[0].page_order}catch(e){return null}}(),i=await n({data:{title:e.title,slug:a,description:r(e.description,l),content:r(e.content,l),text_content:e.text_content,level:e.level,page_order:t?e.page_order:parseInt(o)+1,parent_id:e?.parent_id},tableName:"docs_pages",update:t,duplicateColumnName:"id",duplicateColumnValue:e.id});return i?.insertId?i:t&&i.affectedRows?i:null}},73921:(e,t,a)=>{let r=a(51348);e.exports=async function({body:e}){return await r("DELETE FROM docs_pages WHERE id=?",[e.id])||null}},29131:(e,t,a)=>{let r=a(29021);e.exports=async function(){let e="./components/su/components/RichText/html-presets",t=[];return r.existsSync(e)&&r.readdirSync(e).forEach(a=>{if(a?.endsWith(".html")){let s={};s[a.replace(/\.html$/,"")]=r.readFileSync(`${e}/${a}`,"utf-8"),t.push({...s})}}),t}},30573:(e,t,a)=>{a(29021);let r=a(51348);e.exports=async function({body:e}){let t=await r("SELECT id, title, slug FROM docs_pages WHERE parent_id = ?",[e.pageId]);return t[0]?t:null}},6983:(e,t,a)=>{let r=a(51348);e.exports=async function({body:e}){return e?.currentPageId?await r("SELECT * FROM docs_pages WHERE level = ? AND id != ?",[e.pagesLevel,e.currentPageId]):await r("SELECT * FROM docs_pages WHERE level = ?",[e.pagesLevel])}},46238:(e,t,a)=>{let r=a(29021),s=a(51348);e.exports=async function({body:e}){let{pull:t}=e,a="./jsonData/docs.json";if(t)try{let e=JSON.parse(r.readFileSync(a,"utf-8"));for(let t=0;t{let{IncomingMessage:r}=a(81630),s=a(72835),n=a(31341);e.exports=async function(e){let{keyCookieName:t,csrfCookieName:a}=n(),r=`${t}_su`;if(!e.cookies?.[r])return console.log("No auth key cookie found"),null;let l=s({encryptedString:e.cookies[r]});if(!l)return console.log("No user payload found"),null;let o=JSON.parse(l);return o.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):o.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):o}},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=t;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=a;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:s,csrfCookieName:n+=r}}},72835:(e,t,a)=>{let{scryptSync:r,createDecipheriv:s}=a(55511),{Buffer:n}=a(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:a})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=a||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=s("aes-192-cbc",r(l,o,i),n.alloc(16,0));try{let t=d.update(e,"hex","utf8");return t+=d.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[4050],()=>a(24296));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2927,e.ids=[2927],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},24296:(e,t,a)=>{a.r(t),a.d(t,{config:()=>N,default:()=>w,routeModule:()=>R});var r={};a.r(r),a.d(r,{default:()=>h});var s=a(89947),n=a(2706),l=a(96762),o=a(77509),i=a.n(o),d=a(73921),c=a.n(d),u=a(29131),p=a.n(u),_=a(30573),g=a.n(_),E=a(6983),f=a.n(E),S=a(46238),y=a.n(S),m=a(19131),v=a.n(m);async function h(e,t){if("POST"!==e.method)return t.json({success:!1,msg:"Wrong Method"});let a=await v()(e);if(!a?.logged_in_status)return t.json({success:!1,log:"Unauthorized"});let{action:r}=e.query,s=e.body;try{let e;switch(r){case"add-page":e=await i()({body:s});break;case"update-page":e=await i()({body:s,update:!0});break;case"delete-page":e=await c()({body:s});break;case"get-snippets":e=await p()();break;case"grab-parent-pages":e=await f()({body:s});break;case"get-child-pages":e=await g()({body:s});break;case"persist":e=await y()({body:s})}if(!e)throw Error("Operation failed!");t.json({success:!0,result:e})}catch(e){t.json({success:!1})}}let w=(0,l.M)(r,"default"),N=(0,l.M)(r,"config"),R=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/docs/[action]",pathname:"/api/admin/docs/[action]",bundlePath:"",filename:""},userland:r})},77509:(e,t,a)=>{let r=a(72583),s=a(51348),n=a(47670),l=a(16570);e.exports=async function({body:e,update:t}){let a=e.title.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9\-]/g,""),o=await async function(){if(t)return null;try{return(await s("SELECT page_order FROM docs_pages ORDER BY page_order DESC LIMIT 1"))[0].page_order}catch(e){return null}}(),i=await n({data:{title:e.title,slug:a,description:r(e.description,l),content:r(e.content,l),text_content:e.text_content,level:e.level,page_order:t?e.page_order:parseInt(o)+1,parent_id:e?.parent_id},tableName:"docs_pages",update:t,duplicateColumnName:"id",duplicateColumnValue:e.id});return i?.insertId?i:t&&i.affectedRows?i:null}},73921:(e,t,a)=>{let r=a(51348);e.exports=async function({body:e}){return await r("DELETE FROM docs_pages WHERE id=?",[e.id])||null}},29131:(e,t,a)=>{let r=a(29021);e.exports=async function(){let e="./components/su/components/RichText/html-presets",t=[];return r.existsSync(e)&&r.readdirSync(e).forEach(a=>{if(a?.endsWith(".html")){let s={};s[a.replace(/\.html$/,"")]=r.readFileSync(`${e}/${a}`,"utf-8"),t.push({...s})}}),t}},30573:(e,t,a)=>{a(29021);let r=a(51348);e.exports=async function({body:e}){let t=await r("SELECT id, title, slug FROM docs_pages WHERE parent_id = ?",[e.pageId]);return t[0]?t:null}},6983:(e,t,a)=>{let r=a(51348);e.exports=async function({body:e}){return e?.currentPageId?await r("SELECT * FROM docs_pages WHERE level = ? AND id != ?",[e.pagesLevel,e.currentPageId]):await r("SELECT * FROM docs_pages WHERE level = ?",[e.pagesLevel])}},46238:(e,t,a)=>{let r=a(29021),s=a(51348);e.exports=async function({body:e}){let{pull:t}=e,a="./jsonData/docs.json";if(t)try{let e=JSON.parse(r.readFileSync(a,"utf-8"));for(let t=0;t{let{IncomingMessage:r}=a(81630),s=a(72835),n=a(31341);e.exports=async function(e){let{keyCookieName:t,csrfCookieName:a}=n(),r=`${t}_su`;if(!e.cookies?.[r])return console.log("No auth key cookie found"),null;let l=s({encryptedString:e.cookies[r]});if(!l)return console.log("No user payload found"),null;let o=JSON.parse(l);return o.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):o.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):o}},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=t;e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),n+=a;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),s&&(l+=`${s}_`),{keyCookieName:n,csrfCookieName:l+=r}}},72835:(e,t,a)=>{let{scryptSync:r,createDecipheriv:s}=a(55511),{Buffer:n}=a(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:a})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=a||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=s("aes-192-cbc",r(l,o,i),n.alloc(16,0));try{let t=d.update(e,"hex","utf8");return t+=d.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[4050],()=>a(24296));module.exports=r})(); \ No newline at end of file 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 3d5e4ae..2edb421 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},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}}})},62347:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>d,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>p});var n=s(89947),o=s(2706),a=s(96762),c=s(57638),l=s.n(c);s(48225);var i=s(19131),u=s.n(i);async function p(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await u()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:t}=e.query;try{let e=await l()({database:"string"==typeof t?t:"",queryString:`SHOW TABLES FROM ${t}`});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})}}s(29021);let d=(0,a.M)(t,"default"),_=(0,a.M)(t,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[t]});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}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=t}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let o=0;o",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],s=o.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||o.socket.remoteAddress;if(!n)return null;return String(n)}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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},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}}})},62347:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>d,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>p});var n=s(89947),o=s(2706),a=s(96762),c=s(57638),l=s.n(c);s(48225);var i=s(19131),u=s.n(i);async function p(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await u()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:t}=e.query;try{let e=await l()({database:"string"==typeof t?t:"",queryString:`SHOW TABLES FROM ${t}`});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})}}s(29021);let d=(0,a.M)(t,"default"),_=(0,a.M)(t,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[t]});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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=t}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let o=0;o",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],s=o.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${a.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),o=s(51348),a=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:l,useLocal:i}){let u;let p=!!s?.match(/^datasquirel$/),d=i?c:p?o:a;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await t({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({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,c=s||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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=n("aes-192-cbc",t(a,c,l),o.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),o=s(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:s,queryValues:c}){try{return new Promise((l,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(s,c).then(p).catch(d):a.query(s).then(p).catch(d)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function o(...e){let r=t({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:n()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=62347);module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),o=s(51348),a=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:l,useLocal:i}){let u;let p=!!i||!!s?.match(/^datasquirel$/),d=i?c:p?o:a;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await t({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({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,c=s||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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=n("aes-192-cbc",t(a,c,l),o.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),o=s(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:s,queryValues:c}){try{return new Promise((l,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(s,c).then(p).catch(d):a.query(s).then(p).catch(d)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function o(...e){let r=t({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:n()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=62347);module.exports=s})(); \ 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 b1e8022..f9df0ae 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")},81630:e=>{e.exports=require("http")},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}}})},42513:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),u=t(96762),i=t(19131),a=t.n(i);let c=t(29021);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await a()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;c.existsSync(n)||c.mkdirSync(n);let o=c.readdirSync(n);r.json({success:!0,backups:o})}let d=(0,u.M)(s,"default"),p=(0,u.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=n({encryptedString:e.cookies[s]});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}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=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(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(u,i,a),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=42513);module.exports=t})(); \ 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")},81630:e=>{e.exports=require("http")},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}}})},42513:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var t={};s.r(t),s.d(t,{default:()=>a});var n=s(89947),o=s(2706),u=s(96762),i=s(19131),c=s.n(i);let l=s(29021);async function a(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await c()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let t=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t}/backups`;l.existsSync(n)||l.mkdirSync(n);let o=l.readdirSync(n);r.json({success:!0,backups:o})}let d=(0,u.M)(t,"default"),p=(0,u.M)(t,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=n({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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),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:o,csrfCookieName:u+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(u,i,c),o.alloc(16,0));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)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=42513);module.exports=s})(); \ 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 9b60b63..a265263 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")},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")},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}}})},29249:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),a=t(96762),i=t(51348),c=t.n(i),u=t(19131),l=t.n(u);let p=t(29021);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await l()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user,o=s?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}`,a=[];!function e({originArray:r,rootPath:t}){let s=p.readdirSync(t);for(let o=0;oObject.values(e)[0])})}let _=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),o=t(72835),n=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=n(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=o({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}},31341:e=>{e.exports=function(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=r;e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),o+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:o,csrfCookieName:n+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:o}=t(55511),{Buffer:n}=t(79428);e.exports=({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,c=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 u=o("aes-192-cbc",s(a,i,c),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),o=t(21580),n=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:o()}});async function a(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=29249);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")},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")},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}}})},29249:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),a=t(96762),i=t(51348),c=t.n(i),u=t(19131),l=t.n(u);let p=t(29021);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await l()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user,o=s?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}`,a=[];!function e({originArray:r,rootPath:t}){let s=p.readdirSync(t);for(let o=0;oObject.values(e)[0])})}let _=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),o=t(72835),n=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=n(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=o({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}},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:n,csrfCookieName:a+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:o}=t(55511),{Buffer:n}=t(79428);e.exports=({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,c=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 u=o("aes-192-cbc",s(a,i,c),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),o=t(21580),n=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:o()}});async function a(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=29249);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 82de488..8b2adcc 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")},81630:e=>{e.exports=require("http")},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}}})},89995:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),a=t(96762),u=t(19131),i=t.n(u);let c=t(29021);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await i()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n="./.tmp/backups";c.existsSync(n)||c.mkdirSync(n);let s=c.readdirSync(n);r.json({success:!0,backups:s})}let d=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),s=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),n=`${r}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let a=s({encryptedString:e.cookies[n]});if(!a)return console.log("No user payload found"),null;let u=JSON.parse(a);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=n}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=s("aes-192-cbc",n(a,u,i),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=89995);module.exports=t})(); \ 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")},81630:e=>{e.exports=require("http")},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}}})},89995:(e,r,n)=>{n.r(r),n.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var t={};n.r(t),n.d(t,{default:()=>l});var s=n(89947),o=n(2706),u=n(96762),i=n(19131),a=n.n(i);let c=n(29021);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await a()(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let t="./.tmp/backups";c.existsSync(t)||c.mkdirSync(t);let s=c.readdirSync(t);r.json({success:!0,backups:s})}let d=(0,u.M)(t,"default"),p=(0,u.M)(t,"config"),_=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:t})},19131:(e,r,n)=>{let{IncomingMessage:t}=n(81630),s=n(72835),o=n(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:n}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=s({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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:o,csrfCookieName:u+=t}}},72835:(e,r,n)=>{let{scryptSync:t,createDecipheriv:s}=n(55511),{Buffer:o}=n(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:n})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=n||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=s("aes-192-cbc",t(u,i,a),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var n;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(n||(n={}))},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=89995);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 95bec08..0cd354b 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")},81630:e=>{e.exports=require("http")},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}}})},22955:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var o={};t.r(o),t.d(o,{default:()=>c});var s=t(89947),n=t(2706),i=t(96762),u=t(19131),a=t.n(u);let l=t(29021);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await a()(e);if(!t?.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,i.M)(o,"default"),p=(0,i.M)(o,"config"),f=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},19131:(e,r,t)=>{let{IncomingMessage:o}=t(81630),s=t(72835),n=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=n(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=s({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let u=JSON.parse(i);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:s,csrfCookieName:n+=o}}},72835:(e,r,t)=>{let{scryptSync:o,createDecipheriv:s}=t(55511),{Buffer:n}=t(79428);e.exports=({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,u=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=s("aes-192-cbc",o(i,u,a),n.alloc(16,0));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)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22955);module.exports=t})(); \ 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")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,o){return o in r?r[o]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,o)):"function"==typeof r&&"default"===o?r:void 0}}})},22955:(e,r,o)=>{o.r(r),o.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var t={};o.r(t),o.d(t,{default:()=>c});var s=o(89947),n=o(2706),u=o(96762),i=o(19131),l=o.n(i);let a=o(29021);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let o=await l()(e);if(!o?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!a.existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let t=a.readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:t})}let d=(0,u.M)(t,"default"),p=(0,u.M)(t,"config"),_=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:t})},19131:(e,r,o)=>{let{IncomingMessage:t}=o(81630),s=o(72835),n=o(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:o}=n(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=s({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}},31341:e=>{e.exports=function(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",o=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),n+=o;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:n,csrfCookieName:u+=t}}},72835:(e,r,o)=>{let{scryptSync:t,createDecipheriv:s}=o(55511),{Buffer:n}=o(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:o})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=o||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=s("aes-192-cbc",t(u,i,l),n.alloc(16,0));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)=>{var o;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(o||(o={}))},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=22955);module.exports=o})(); \ 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 96bce92..b96bef9 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")},81630:e=>{e.exports=require("http")},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}}})},15570:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),o=t(2706),a=t(96762),u=t(19131),i=t.n(u);let l=t(29021);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await i()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:n,path:s}=e.body;if(e.body.user,!s?.match(/^\.\/jsonData\/dbSchemas\/users/))return r.json({success:!1,msg:"Invalid Path"});let o=s.replace(/\//g,"\\\\"),a=l.readFileSync(o,"utf-8");r.json({success:!0,data:a})}let d=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),s=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),n=`${r}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let a=s({encryptedString:e.cookies[n]});if(!a)return console.log("No user payload found"),null;let u=JSON.parse(a);return u.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):u.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):u}},31341:e=>{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=n}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=s("aes-192-cbc",n(a,u,i),o.alloc(16,0));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)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=15570);module.exports=t})(); \ 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")},81630:e=>{e.exports=require("http")},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}}})},15570:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),o=t(2706),u=t(96762),i=t(19131),a=t.n(i);let l=t(29021);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await a()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:n,path:s}=e.body;if(e.body.user,!s?.match(/^\.\/jsonData\/dbSchemas\/users/))return r.json({success:!1,msg:"Invalid Path"});let o=s.replace(/\//g,"\\\\"),u=l.readFileSync(o,"utf-8");r.json({success:!0,data:u})}let d=(0,u.M)(n,"default"),p=(0,u.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),s=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),n=`${r}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let u=s({encryptedString:e.cookies[n]});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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=t;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:o,csrfCookieName:u+=n}}},72835:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=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(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=s("aes-192-cbc",n(u,i,a),o.alloc(16,0));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)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=15570);module.exports=t})(); \ 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 c68ffe6..7d2e4ea 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}}})},76386:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>_,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),o=t(2706),i=t(96762),a=t(31341),u=t.n(a),c=t(20503),l=t.n(c);async function d(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=l()({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:a}=u()();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let _=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:n})},31341:e=>{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=n}}},20503:(e,r,t)=>{let{scryptSync:n,createCipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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 c=s("aes-192-cbc",n(i,a,u),o.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=76386);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,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}}})},76386:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>_});var s=t(89947),o=t(2706),i=t(96762),u=t(31341),a=t.n(u),c=t(20503),l=t.n(c);async function _(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=l()({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:u}=a()();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let d=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:n})},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),{keyCookieName:o,csrfCookieName:i+=n}}},20503:(e,r,t)=>{let{scryptSync:n,createCipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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(!u?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=s("aes-192-cbc",n(i,u,a),o.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=76386);module.exports=t})(); \ 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 d1f332a..4fa0c52 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},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}}})},89496:(e,r,s)=>{s.r(r),s.d(r,{config:()=>g,default:()=>S,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>_});var n=s(89947),o=s(2706),a=s(96762),c=s(57638),l=s.n(c),i=s(48225),u=s.n(i),p=s(19131),d=s.n(p);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await d()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:t,query:n}=e.body;e.body.user;try{let e=await l()({database:t,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),u()({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}s(29021);let S=(0,a.M)(t,"default"),g=(0,a.M)(t,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[t]});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}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=t}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let o=0;o",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],s=o.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||o.socket.remoteAddress;if(!n)return null;return String(n)}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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},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}}})},89496:(e,r,s)=>{s.r(r),s.d(r,{config:()=>g,default:()=>S,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>_});var n=s(89947),o=s(2706),a=s(96762),c=s(57638),l=s.n(c),i=s(48225),u=s.n(i),p=s(19131),d=s.n(p);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await d()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:t,query:n}=e.body;e.body.user;try{let e=await l()({database:t,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),u()({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}s(29021);let S=(0,a.M)(t,"default"),g=(0,a.M)(t,"config"),D=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72835),o=s(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:s}=o(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=n({encryptedString:e.cookies[t]});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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=t}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let o=0;o",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],s=o.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${a.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),o=s(51348),a=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:l,useLocal:i}){let u;let p=!!s?.match(/^datasquirel$/),d=i?c:p?o:a;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await t({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({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,c=s||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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=n("aes-192-cbc",t(a,c,l),o.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),o=s(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:s,queryValues:c}){try{return new Promise((l,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(s,c).then(p).catch(d):a.query(s).then(p).catch(d)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function o(...e){let r=t({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:n()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=89496);module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),o=s(51348),a=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:l,useLocal:i}){let u;let p=!!i||!!s?.match(/^datasquirel$/),d=i?c:p?o:a;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await t({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({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,c=s||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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=n("aes-192-cbc",t(a,c,l),o.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),o=s(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:s,queryValues:c}){try{return new Promise((l,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(s,c).then(p).catch(d):a.query(s).then(p).catch(d)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function o(...e){let r=t({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:n()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=89496);module.exports=s})(); \ 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 905afa6..c1486e6 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")},81630:e=>{e.exports=require("http")},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}}})},89106:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>g,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),o=t(2706),u=t(96762),a=t(33873),i=t.n(a),c=t(19131),l=t.n(c),d=t(27825),p=t.n(d);let{execSync:f}=t(79646),_=t(29021);async function E(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await l()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let t=i().join(process.cwd(),".env"),s=_.readFileSync(t,"utf-8"),n=RegExp(`${p().escapeRegExp(e.body.key)}=.*`);s.match(n);let o=s.replace(n,`${e.body.key}=${e.body.value}`);_.writeFileSync(t,o,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let g=(0,u.M)(s,"default"),P=(0,u.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=n({encryptedString:e.cookies[s]});if(!u)return console.log("No user payload found"),null;let a=JSON.parse(u);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}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=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(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(u,a,i),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=89106);module.exports=t})(); \ 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")},79646:e=>{e.exports=require("child_process")},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,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}}})},89106:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>g,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),o=t(2706),u=t(96762),i=t(33873),c=t.n(i),l=t(19131),a=t.n(l),p=t(27825),d=t.n(p);let{execSync:_}=t(79646),f=t(29021);async function E(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await a()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let t=c().join(process.cwd(),".env"),s=f.readFileSync(t,"utf-8"),n=RegExp(`${d().escapeRegExp(e.body.key)}=.*`);s.match(n);let o=s.replace(n,`${e.body.key}=${e.body.value}`);f.writeFileSync(t,o,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let g=(0,u.M)(s,"default"),P=(0,u.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:s})},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72835),o=t(31341);e.exports=async function(e){let{keyCookieName:r,csrfCookieName:t}=o(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=n({encryptedString:e.cookies[s]});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}},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),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:o,csrfCookieName:u+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let u=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(!u?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(u,i,c),o.alloc(16,0));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)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=89106);module.exports=t})(); \ 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 8f3e206..63911f6 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")},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")},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}}})},6523:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),c=t.n(i),u=t(6420),l=t.n(u),d=t(14533),_=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await l()(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+$/),a=!!String(s).match(/ /);if(!e||!o)throw Error("Invalud Parameters!");if(a)throw Error("Invalid Password!");let i=await c()("SELECT * FROM user_databases WHERE id = ?",[n]),u=i?.[0]?.db_full_name,l=_()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s});await c()(`UPDATE \`${u}\`.\`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 f=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=6523);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")},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")},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}}})},6523:(e,r,s)=>{s.r(r),s.d(r,{config:()=>S,default:()=>f,routeModule:()=>E});var t={};s.r(t),s.d(t,{default:()=>p});var n=s(89947),o=s(2706),a=s(96762),i=s(51348),c=s.n(i),u=s(6420),l=s.n(u),_=s(14533),d=s.n(_);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await l()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:s,password:t,dbId:n}=e.body;try{let e=!!String(n).match(/^\d+$/),o=!!String(s).match(/^\d+$/),a=!!String(t).match(/ /);if(!e||!o)throw Error("Invalud Parameters!");if(a)throw Error("Invalid Password!");let i=await c()("SELECT * FROM user_databases WHERE id = ?",[n]),u=i?.[0]?.db_full_name,l=d()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:t});await c()(`UPDATE \`${u}\`.\`users\` SET password = ? WHERE id = ?`,[l,s]),r.json({success:!0,msg:"DB user Password Changed!"})}catch(e){r.json({success:!1,msg:e.message})}}let f=(0,a.M)(t,"default"),S=(0,a.M)(t,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),n=s(72835),o=s(29021),a=s(31341);async function i(e,r,s,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!o.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({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,i=s||process.env.DSQL_ENCRYPTION_SALT,c=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 u=n("aes-192-cbc",t(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,s)=>{let{createHmac:t}=s(55511);e.exports=function({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=t("sha512",s);return n.update(e),n.digest("base64")}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=6523);module.exports=s})(); \ 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 47808e0..50265be 100644 --- a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let p=!!t?.match(/^datasquirel$/),d=l?c:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=43634);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let p=!!l||!!t?.match(/^datasquirel$/),d=l?c:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=43634);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 772d99e..9e70e70 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")},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")},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}}})},82651:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),i=t(96762),a=t(33873),c=t.n(a),u=t(6420),l=t.n(u);let _=t(29021);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(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+"/":""}`),a=_.existsSync(i+s);r.json({success:a})}let d=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=82651);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")},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")},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}}})},82651:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),i=t(96762),c=t(33873),u=t.n(c),a=t(6420),l=t.n(a);let _=t(29021);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(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=u().join(o,`images/user-images/user-${t.id}/${n?n+"/":""}`),c=_.existsSync(i+s);r.json({success:c})}let d=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function c(e,r,t,c){let{keyCookieName:u,csrfCookieName:a}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=t||process.env.DSQL_ENCRYPTION_SALT,u=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=n("aes-192-cbc",s(i,c,u),o.alloc(16,0));try{let r=a.update(e,"hex","utf8");return r+=a.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=82651);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 224afeb..f0746f9 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")},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")},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}}})},7616:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),i=t(96762),a=t(6420),c=t.n(a);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await c()(e,r,!0);r.json({user:t})}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=7616);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")},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")},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}}})},7616:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),i=t(96762),a=t(6420),c=t.n(a);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await c()(e,r,!0);r.json({user:t})}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=7616);module.exports=t})(); \ No newline at end of file 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 399ee39..2ffaf6d 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")},81630:e=>{e.exports=require("http")},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}}})},85617:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),a=t(96762),i=t(48225),c=t.n(i),l=t(6420),u=t.n(l),p=t(33364),_=t.n(p);t(29021),t(28354);let{URL:d}=t(79551);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbId:s}=e.body;try{if(!s)throw Error("No Target Database ID provided");await _()({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:s}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),c()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let f=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),i=t(20503),c=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let m=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),E=g?c:m?o:a,D=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"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"}}),h.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}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${l} SET ${h.join(",")} WHERE \`${_}\`=?`;return y.push(d),m?await E(v,y):await E({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=l},16570:e=>{e.exports={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"]}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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")},81630:e=>{e.exports=require("http")},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}}})},85617:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),a=t(96762),i=t(48225),c=t.n(i),l=t(6420),u=t.n(l),p=t(33364),_=t.n(p);t(29021),t(28354);let{URL:d}=t(79551);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbId:s}=e.body;try{if(!s)throw Error("No Target Database ID provided");await _()({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:s}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),c()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let f=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),i=t(20503),c=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let E=!!g||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=g?c:E?o:a,D=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"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"}}),h.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}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${l} SET ${h.join(",")} WHERE \`${_}\`=?`;return y.push(d),E?await m(v,y):await m({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=l},16570:e=>{e.exports={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"]}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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/handshake.js b/dsql-app/.local_dist/server/pages/api/connect/handshake.js index 18be58c..002190b 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={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},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}}})},83919:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),c=t(7753),i=t(48225),l=t.n(i),u=t(6420),_=t.n(u),d=t(33364),p=t.n(d);t(29021),t(28354);let{URL:S}=t(79551);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:a,dbSchema:o,type:i,remoteDbs:u,targetDb:d}=e.body;try{if(!d?.tables)throw Error("No Target Database");await p()({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:s,remote_connection_key:n,remote_connection_type:i,remote_db_full_name:d.dbFullName},identifierColumnName:"db_full_name",identifierValue:a.db_full_name}),await (0,c.e)({dbSchema:d,database:a,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),l()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:s})},7753:(e,r,t)=>{let s=t(19261),{execSync:n}=t(79646),a=t(29021),o=t(33873),c=async({userId:e,dbSchema:r,targetDb:t})=>(await s({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),i=async({userId:e,dbSchema:r,database:t})=>{let s=o.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),n=JSON.parse(a.readFileSync(s,"utf-8")),i=n.findIndex(e=>e.dbFullName==t.db_full_name);if(i<0)throw Error("Target Database not found in user schema data");let l={...n[i]};return n[i]=r,n[i].dbName=l.dbName,n[i].dbFullName=l.dbFullName,n[i].dbSlug=l.dbSlug,n[i].dbImage=l.dbImage,await c({dbSchema:n,userId:e,targetDb:t.db_full_name})};r.e=i},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:_,identifierColumnName:d,identifierValue:p,encryptionKey:S,encryptionSalt:f,useLocal:m}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=m?i:g?a:o,D=Object.keys(u),E=[],b=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"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?b.push(String(t)):b.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 y=`UPDATE ${l} SET ${E.join(",")} WHERE \`${d}\`=?`;return b.push(p),g?await h(y,b):await h({paradigm:r,database:t,queryString:y,queryValues:b})}e.exports=l},16570:e=>{e.exports={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"]}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(_).catch(d):o.query(t).then(_).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(83919));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},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}}})},83919:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),o=t(2706),a=t(96762),c=t(7753),i=t(48225),l=t.n(i),u=t(6420),_=t.n(u),d=t(33364),p=t.n(d);t(29021),t(28354);let{URL:S}=t(79551);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:o,dbSchema:a,type:i,remoteDbs:u,targetDb:d}=e.body;try{if(!d?.tables)throw Error("No Target Database");await p()({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:s,remote_connection_key:n,remote_connection_type:i,remote_db_full_name:d.dbFullName},identifierColumnName:"db_full_name",identifierValue:o.db_full_name}),await (0,c.e)({dbSchema:d,database:o,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),l()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let m=(0,a.M)(s,"default"),D=(0,a.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:s})},7753:(e,r,t)=>{let s=t(19261),{execSync:n}=t(79646),o=t(29021),a=t(33873),c=async({userId:e,dbSchema:r,targetDb:t})=>(await s({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),i=async({userId:e,dbSchema:r,database:t})=>{let s=a.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),n=JSON.parse(o.readFileSync(s,"utf-8")),i=n.findIndex(e=>e.dbFullName==t.db_full_name);if(i<0)throw Error("Target Database not found in user schema data");let l={...n[i]};return n[i]=r,n[i].dbName=l.dbName,n[i].dbFullName=l.dbFullName,n[i].dbSlug=l.dbSlug,n[i].dbImage=l.dbImage,await c({dbSchema:n,userId:e,targetDb:t.db_full_name})};r.e=i},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=a();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:_,identifierColumnName:d,identifierValue:p,encryptionKey:S,encryptionSalt:f,useLocal:m}){if(!u||!Object.keys(u).length)return null;let D=!!m||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=m?i:D?o:a,h=Object.keys(u),E=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"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?y.push(String(t)):y.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 b=`UPDATE ${l} SET ${E.join(",")} WHERE \`${d}\`=?`;return y.push(p),D?await g(b,y):await g({paradigm:r,database:t,queryString:b,queryValues:y})}e.exports=l},16570:e=>{e.exports={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"]}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){a.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(t,c).then(_).catch(d):a.query(t).then(_).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(83919));module.exports=s})(); \ 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 354108a..0891f38 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/verify.js +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js @@ -1,16 +1,16 @@ -"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")},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")},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}}})},94871:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>_,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),o=t(2706),a=t(96762),i=t(83634),c=t.n(i),l=t(48225),u=t.n(l),p=t(6420),d=t.n(p);t(29021),t(28354);let{URL:f}=t(79551);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await d()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:o,dbSchema:a,type:i}=e.body;try{let{hostname:e,port:t,protocol:o}=new f(s),a=await c()({scheme:o,headers:{Authorization:n},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:s,key:n}}),i=JSON.parse(a);if(!i?.success)throw Error(i.msg||"Remote request failed");r.json({success:!0,payload:i.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),u()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let _=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},83634:(e,r,t)=>{let s=t(55591),n=t(81630),{URL:o}=t(79551);e.exports=function({url:e,method:r,hostname:t,path:a,headers:i,body:c,port:l,scheme:u}){let p=c?JSON.stringify(c):null,d=e?new o(e):null,f={method:r||"GET",hostname:d?d.hostname:t,port:u?.match(/https/i)?443:d?d.protocol?.match(/https/i)?443:d.port:l?Number(l):80,headers:{}};return a&&(f.path=a),i&&(f.headers=i),c&&(f.headers["Content-Type"]="application/json",f.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,r)=>{let t=(u?.match(/https/i)?s:d?.protocol?.match(/https/i)?s:n).request(f,t=>{var s="";t.on("data",function(e){s+=e}),t.on("end",function(){e(s)}),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(p),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 n=`🚀 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")},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")},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}}})},94871:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>m,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),i=t(96762),a=t(83634),c=t.n(a),l=t(48225),u=t.n(l),p=t(6420),d=t.n(p);t(29021),t(28354);let{URL:f}=t(79551);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await d()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:o,dbSchema:i,type:a}=e.body;try{let{hostname:e,port:t,protocol:o}=new f(s),i=await c()({scheme:o,headers:{Authorization:n},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:s,key:n}}),a=JSON.parse(i);if(!a?.success)throw Error(a.msg||"Remote request failed");r.json({success:!0,payload:a.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),u()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let m=(0,i.M)(s,"default"),S=(0,i.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=i();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},83634:(e,r,t)=>{let s=t(55591),n=t(81630),{URL:o}=t(79551);e.exports=function({url:e,method:r,hostname:t,path:i,headers:a,body:c,port:l,scheme:u}){let p=c?JSON.stringify(c):null,d=e?new o(e):null,f={method:r||"GET",hostname:d?d.hostname:t,port:u?.match(/https/i)?443:d?d.protocol?.match(/https/i)?443:d.port:l?Number(l):80,headers:{}};return i&&(f.path=i),a&&(f.headers=a),c&&(f.headers["Content-Type"]="application/json",f.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,r)=>{let t=(u?.match(/https/i)?s:d?.protocol?.match(/https/i)?s:n).request(f,t=>{var s="";t.on("data",function(e){s+=e}),t.on("end",function(){e(s)}),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(p),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` -Date: ${a.toDateString()} +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +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",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94871);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94871);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js index 1e2676d..d47fb3f 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={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},34932:(e,s,a)=>{a.r(s),a.d(s,{config:()=>A,default:()=>R,routeModule:()=>g});var r={};a.r(r),a.d(r,{default:()=>N});var t=a(89947),i=a(2706),n=a(96762),l=a(51348),o=a.n(l),u=a(48225),d=a.n(u),c=a(6420),_=a.n(c),b=a(47670),p=a.n(b),S=a(51926),m=a.n(S),E=a(19261),f=a.n(E);let D=a(29021);a(33873);let{execSync:h}=a(79646);async function N(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let a=await _()(e,s,!0);if(!a)return s.json({success:!1,msg:"Unauthorized"});let r=await o()("SELECT * FROM users WHERE id = ?",[a.id]),t=r?.[0],{db_name:i,db_slug:n,db_description:l,db_image:u,duplicate:c,keepUpdated:b,keepDataUpdated:S}=e.body;if(n.match(/[^a-zA-Z0-9-_]/))return s.json({success:!1,msg:"Input Error"});let E=`datasquirel_user_${a.id}_${n}`,h=await m()(`CREATE DATABASE IF NOT EXISTS \`${E}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!h?.affectedRows)return s.json({success:!1,msg:"Database Could Not be created!"});let N={user_id:a.id,db_name:i,db_slug:n,db_full_name:E,db_description:l,db_image:u};c&&b&&(N.active_clone="1",N.active_clone_parent_db=c),c&&S&&(N.active_data="1");let R=await p()({dbFullName:"datasquirel",tableName:"user_databases",data:N});if(R.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/main.json`,r=JSON.parse(D.readFileSync(e,"utf8")),o={dbName:i,dbSlug:n,dbFullName:E,dbDescription:l,dbImage:u,tables:[]};if(c)try{let e=r.filter(e=>e.dbFullName===c)[0];o.tables=e.tables,b&&(o.childDatabase=!0,o.childDatabaseDbFullName=c,S&&(o.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:E}):e.childrenDatabases=[{dbFullName:E}]);for(let e=0;e{a(81630);let r=a(51348),t=a(72835),i=a(29021),n=a(31341);async function l(e,s,a,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let d=t({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||a&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(a&&!i.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!a){let e=await r(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=s;e?.userId&&(t+=`user_${e.userId}_`),e?.database&&(t+=`${e.database}_`),t+=a;let i=s;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:t,csrfCookieName:i+=r}}},51926:(e,s,a)=>{let r=a(29021),t=a(48225),i=a(45356);e.exports=async function(e){let s;"production".match(/dev/)&&r.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{s=await i(e)}catch(e){t({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return s||null}},45356:(e,s,a)=>{let r=a(9973),t=a(21580),i=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:t()}});e.exports=function(...e){try{return new Promise((s,a)=>{i.query(...e).then(e=>{i.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var s=require("../../webpack-api-runtime.js");s.C(e);var a=e=>s(s.s=e),r=s.X(0,[4050,2451],()=>a(34932));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},34932:(e,s,a)=>{a.r(s),a.d(s,{config:()=>R,default:()=>A,routeModule:()=>g});var r={};a.r(r),a.d(r,{default:()=>h});var t=a(89947),i=a(2706),n=a(96762),l=a(51348),o=a.n(l),u=a(48225),c=a.n(u),d=a(6420),_=a.n(d),p=a(47670),b=a.n(p),S=a(51926),m=a.n(S),E=a(19261),f=a.n(E);let D=a(29021);a(33873);let{execSync:N}=a(79646);async function h(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let a=await _()(e,s,!0);if(!a)return s.json({success:!1,msg:"Unauthorized"});let r=await o()("SELECT * FROM users WHERE id = ?",[a.id]),t=r?.[0],{db_name:i,db_slug:n,db_description:l,db_image:u,duplicate:d,keepUpdated:p,keepDataUpdated:S}=e.body;if(n.match(/[^a-zA-Z0-9-_]/))return s.json({success:!1,msg:"Input Error"});let E=`datasquirel_user_${a.id}_${n}`,N=await m()(`CREATE DATABASE IF NOT EXISTS \`${E}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!N?.affectedRows)return s.json({success:!1,msg:"Database Could Not be created!"});let h={user_id:a.id,db_name:i,db_slug:n,db_full_name:E,db_description:l,db_image:u};d&&p&&(h.active_clone="1",h.active_clone_parent_db=d),d&&S&&(h.active_data="1");let A=await b()({dbFullName:"datasquirel",tableName:"user_databases",data:h});if(A.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/main.json`,r=JSON.parse(D.readFileSync(e,"utf8")),o={dbName:i,dbSlug:n,dbFullName:E,dbDescription:l,dbImage:u,tables:[]};if(d)try{let e=r.filter(e=>e.dbFullName===d)[0];o.tables=e.tables,p&&(o.childDatabase=!0,o.childDatabaseDbFullName=d,S&&(o.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:E}):e.childrenDatabases=[{dbFullName:E}]);for(let e=0;e{a(81630);let r=a(51348),t=a(72835),i=a(29021),n=a(31341);async function l(e,s,a,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let c=t({encryptedString:e.cookies[o]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||a&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(a&&!i.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!a){let e=await r(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=s;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=a;let n=s;return e?.userId&&(n+=`user_${e.userId}_`),t&&(n+=`${t}_`),{keyCookieName:i,csrfCookieName:n+=r}}},51926:(e,s,a)=>{let r=a(29021),t=a(48225),i=a(45356);e.exports=async function(e){let s;"production".match(/dev/)&&r.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{s=await i(e)}catch(e){t({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return s||null}},45356:(e,s,a)=>{let r=a(9973),t=a(21580),i=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:t()}});e.exports=function(...e){try{return new Promise((s,a)=>{i.query(...e).then(e=>{i.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var s=require("../../webpack-api-runtime.js");s.C(e);var a=e=>s(s.s=e),r=s.X(0,[4050,2451],()=>a(34932));module.exports=r})(); \ 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 d1bcee1..58db0a4 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")},81630:e=>{e.exports=require("http")},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}}})},5261:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>m,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),o=t(2706),a=t(96762),i=t(72835),l=t.n(i),c=t(48225),u=t.n(c),_=t(6420),S=t.n(_),p=t(64122),d=t.n(p),f=t(77619),g=t.n(f);let E=t(29021);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await S()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,key:n,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=g()({key:String(l()({encryptedString:n})),user_id:t.id});if(!o?.sign)throw await d()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:s}),Error("API KEY is Invalid");try{let r=`${e}/${o?.sign}`;E.unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await d()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:s}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),u()({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let m=(0,a.M)(s,"default"),y=(0,a.M)(s,"config"),A=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let S=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!S)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${S}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:o})=>{if(!e||!o)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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${a}/${l.sign}`);if(String(l.user_id)!==String(o)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),_=c?o:u?s:n,S=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await _(S,[l]):await _({paradigm:r,queryString:S,database:t,queryValues:[l]})}catch(e){return null}}e.exports=a},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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")},81630:e=>{e.exports=require("http")},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}}})},5261:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>m,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),o=t(2706),a=t(96762),i=t(72835),l=t.n(i),c=t(48225),u=t.n(c),_=t(6420),p=t.n(_),S=t(64122),d=t.n(S),f=t(77619),g=t.n(f);let E=t(29021);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,key:n,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=g()({key:String(l()({encryptedString:n})),user_id:t.id});if(!o?.sign)throw await d()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:s}),Error("API KEY is Invalid");try{let r=`${e}/${o?.sign}`;E.unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await d()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:s}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),u()({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let m=(0,a.M)(s,"default"),y=(0,a.M)(s,"config"),A=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:o})=>{if(!e||!o)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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${a}/${l.sign}`);if(String(l.user_id)!==String(o)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),_=c?o:u?s:n,p=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await _(p,[l]):await _({paradigm:r,queryString:p,database:t,queryValues:[l]})}catch(e){return null}}e.exports=a},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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: ${a.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function S(e){a.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(t,i).then(_).catch(S):a.query(t).then(_).catch(S)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=5261);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){a.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){a.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(t,i).then(_).catch(p):a.query(t).then(_).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=5261);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 7ac5e49..d9263fa 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")},81630:e=>{e.exports=require("http")},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}}})},80061:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c),l=t(6420),u=t.n(l);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:s}=e.body;await i()({database:t,queryString:"DELETE FROM users WHERE id = ?",queryValuesArray:[s]}),r.json({success:!0,msg:"User Deleted!"})}t(29021);let p=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=c},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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")},81630:e=>{e.exports=require("http")},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}}})},80061:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c),l=t(6420),u=t.n(l);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:s}=e.body;await i()({database:t,queryString:"DELETE FROM users WHERE id = ?",queryValuesArray:[s]}),r.json({success:!0,msg:"User Deleted!"})}t(29021);let p=(0,o.M)(s,"default"),d=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let d=!!t?.match(/^datasquirel$/),p=l?c:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=80061);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let _=!!l||!!t?.match(/^datasquirel$/),p=l?c:_?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?_?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):_?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(_).catch(p):o.query(t).then(_).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=80061);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 eee6d8d..858ddb8 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")},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")},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}}})},50667:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});await u()("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,t.id]),r.json({success:!0})}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=50667);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")},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")},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}}})},50667:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});await u()("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,t.id]),r.json({success:!0})}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=50667);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 2229fd8..fca34e8 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js @@ -1,16 +1,16 @@ -"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")},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")},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}}})},30976:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),c=t.n(i),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d),_=t(33873),f=t.n(_);let S=t(29021);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:s}=e.body;try{async function n({path:e}){try{let r=S.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 a=f().join(e,`images/user-images/user-${t.id}/`),o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,i=a+(s?s.replace(/\.| /g,"")+"/":""),l=o+(s?s.replace(/\.| /g,"")+"/":"");await n({path:i}),await n({path:l}),r.json({success:!0})}catch(e){u()({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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")},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")},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}}})},30976:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>E});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),c=t.n(i),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d),_=t(33873),S=t.n(_);let f=t(29021);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:s}=e.body;try{async function n({path:e}){try{let r=f.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=S().join(e,`images/user-images/user-${t.id}/`),a=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,i=o+(s?s.replace(/\.| /g,"")+"/":""),l=a+(s?s.replace(/\.| /g,"")+"/":"");await n({path:i}),await n({path:l}),r.json({success:!0})}catch(e){u()({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let m=(0,a.M)(s,"default"),g=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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)}`),i&&(n+=` +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` IP: ${i}`),n+=` -Date: ${o.toDateString()} +Date: ${a.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",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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 l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=30976);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=30976);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js index beea2e2..af2c45e 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js @@ -1,6 +1,6 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},43390:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>D,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(64122),l=t.n(i),c=t(73677),u=t.n(c),d=t(39831),_=t.n(d),p=t(48225),S=t.n(p),E=t(6420),f=t.n(E);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await f()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,tableName:n,entryId:a,dbSlug:o,dbId:i,delegated:c}=e.body;try{let c=await _()({databaseSlug:o,request:e,user:t,query:e.query});if(!await u()({user:t,confirmedDelegetedUser:c,database:o,table:n,dbId:i,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await l()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:n,identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){S()({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let D=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),n=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:a,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await s("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 s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,a,i]),c=!0)}catch(r){n({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),a=t(44900);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a:u?s:n,_=`DELETE FROM ${o} WHERE \`${i}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,database:t,queryValues:[l]})}catch(e){return null}}e.exports=o},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},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}}})},43390:(e,r,s)=>{s.r(r),s.d(r,{config:()=>m,default:()=>D,routeModule:()=>y});var t={};s.r(t),s.d(t,{default:()=>g});var n=s(89947),a=s(2706),o=s(96762),i=s(64122),l=s.n(i),c=s(73677),u=s.n(c),d=s(39831),_=s.n(d),p=s(48225),S=s.n(p),E=s(6420),f=s.n(E);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await f()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,tableName:n,entryId:a,dbSlug:o,dbId:i,delegated:c}=e.body;try{let c=await _()({databaseSlug:o,request:e,user:s,query:e.query});if(!await u()({user:s,confirmedDelegetedUser:c,database:o,table:n,dbId:i,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await l()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:n,identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){S()({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Deletion Failed!"})}}let D=(0,o.M)(t,"default"),m=(0,o.M)(t,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:t})},73677:(e,r,s)=>{let t=s(51348),n=s(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:s,table:a,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await t("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,s,a]),c=l[0]?.priviledge?.match(o)):(l=await t("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,a,i]),c=!0)}catch(r){n({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},39831:(e,r,s)=>{s(81630);let t=s(72835);e.exports=async function({request:e,databaseSlug:r,user:s,query:n}){try{let a=s.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 s=t({encryptedString:e.cookies[c]});if(!s)throw Error("Invalid Token");if((o=JSON.parse(s)).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}}},6420:(e,r,s)=>{s(81630);let t=s(51348),n=s(72835),a=s(29021),o=s(31341);async function i(e,r,s,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=t}}},64122:(e,r,s)=>{let t=s(51348),n=s(21339),a=s(44900);async function o({dbContext:e,paradigm:r,dbFullName:s,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!s||!!s.match(/^datasquirel$/)),d=c?a:u?t:n,_=`DELETE FROM ${o} WHERE \`${i}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,database:s,queryValues:[l]})}catch(e){return null}}e.exports=o},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,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"],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 n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${s}`;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+=` @@ -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",` +========================================`,t.existsSync("./.tmp/error.log")||t.writeFileSync("./.tmp/error.log","","utf-8");let l=t.readFileSync("./.tmp/error.log","utf-8");t.writeFileSync("./.tmp/error.log",n),t.appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=43390);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({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,i=s||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("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",t(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),a=t({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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),a=s(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:s,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),l({error:e.message,queryStringGenerated:s,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(s,i).then(d).catch(_):o.query(s).then(d).catch(_)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function a(...e){let r=t({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:n()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=43390);module.exports=s})(); \ 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 668ee9f..cfcb136 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js @@ -1,4 +1,4 @@ -"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")},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")},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}}})},21734:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>$});var s={};t.r(s),t.d(s,{default:()=>R});var i=t(89947),n=t(2706),a=t(96762),o=t(51348),l=t.n(o),u=t(83743),c=t.n(u),d=t(48225),E=t.n(d),_=t(6420),p=t.n(_);let S=t(29021),f=t(33873);async function R(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await l()(`DELETE FROM users WHERE id='${t.id}'`),await l()(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await l()(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await l()(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await l()(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await l()(`DELETE FROM user_media WHERE user_id='${t.id}'`),await l()(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await l()(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await l()(`DELETE FROM notifications WHERE user_id='${t.id}'`),await l()(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await l()(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await l()("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r{let s=t(29021);e.exports=function({rootFolderPath:e}){try{return function e(r){try{let t=s.readdirSync(r);for(let i=0;i",e.message),!1}}},6420:(e,r,t)=>{t(81630);let s=t(51348),i=t(72835),n=t(29021),a=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=a();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let E=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!E)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${E}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:i,csrfCookieName:n+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({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"],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 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")},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")},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}}})},21734:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>D});var s={};t.r(s),t.d(s,{default:()=>R});var i=t(89947),n=t(2706),a=t(96762),o=t(51348),l=t.n(o),u=t(83743),c=t.n(u),d=t(48225),E=t.n(d),_=t(6420),p=t.n(_);let S=t(29021),f=t(33873);async function R(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await l()(`DELETE FROM users WHERE id='${t.id}'`),await l()(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await l()(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await l()(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await l()(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await l()(`DELETE FROM user_media WHERE user_id='${t.id}'`),await l()(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await l()(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await l()(`DELETE FROM notifications WHERE user_id='${t.id}'`),await l()(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await l()(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await l()("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r{let s=t(29021);e.exports=function({rootFolderPath:e}){try{return function e(r){try{let t=s.readdirSync(r);for(let i=0;i",e.message),!1}}},6420:(e,r,t)=>{t(81630);let s=t(51348),i=t(72835),n=t(29021),a=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=a();if(!e.cookies?.[l]?.match(/./))return null;let c=i({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let E=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!E)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${E}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({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"],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 i=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js index b8822d2..59b7d19 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")},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")},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}}})},47389:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(48225),u=t.n(c),d=t(6420),p=t.n(d),f=t(51926),_=t.n(f);let S=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(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 _()(`DROP DATABASE \`${a}\``),await l()("DELETE FROM user_databases WHERE id = ?",[s]),await l()("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(S.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),S.writeFileSync(`${s}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){u()({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"),D=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},51926:(e,r,t)=>{let s=t(29021),n=t(48225),a=t(45356);e.exports=async function(e){let r;"production".match(/dev/)&&s.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await a(e)}catch(e){n({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},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")},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}}})},47389:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(48225),u=t.n(c),d=t(6420),p=t.n(d),_=t(51926),f=t.n(_);let S=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(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 f()(`DROP DATABASE \`${a}\``),await l()("DELETE FROM user_databases WHERE id = ?",[s]),await l()("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(S.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),S.writeFileSync(`${s}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){u()({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"),D=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},51926:(e,r,t)=>{let s=t(29021),n=t(48225),a=t(45356);e.exports=async function(e){let r;"production".match(/dev/)&&s.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await a(e)}catch(e){n({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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/deleteUserMedia.js b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js index 1d47342..39c1208 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")},81630:e=>{e.exports=require("http")},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}}})},71405:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>g,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),o=t(2706),a=t(96762),i=t(33873),c=t.n(i),l=t(48225),u=t.n(l),d=t(6420),_=t.n(d),S=t(48227),p=t.n(S),f=t(64122),m=t.n(f);let E=t(29021);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{media_name:n,media_url:o,media_thumbnail_url:a,media_path:i,media_thumbnail_path:l,folder:d}=s;"production".match(/production/);try{let e=s?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let n=p()({isPrivate:e,user:t,folder:s.folder?s.folder+"/":"",video:!!s.media_type?.match(/video/i)});if(!n)throw Error("Couldn't grab paths!");let{fileRootPath:i,urlRootPath:l,relativePath:u}=n;d?.match(/./);let _=o.match(/[^\/]+$/)[0],S=a.match(/[^\/]+$/)[0],f=c().normalize(i+_),D=c().normalize(i+S);E.unlinkSync(f);try{E.unlinkSync(D)}catch(e){}await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:s.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),u()({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let g=(0,a.M)(s,"default"),v=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:s})},48227:(e,r,t)=>{let s=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:o,pathOnly:a}){"production".match(/production/);let i=r?.id||r?.user_id,c=process.env.DSQL_STATIC_SERVER_DIR;if(!c)return console.log("Static File ENV not Found!"),null;let l=e?`@/${o?"videos":"media"}/${t?t+"/":""}`:o?`/videos/user-videos/user-${i}/${t?t+"/":""}`:`/images/user-images/user-${i}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/media/${t?t+"/":""}`:n.join(c,l);return s.existsSync(u)||a||s.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:c,useLocal:l}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=l?o:u?s:n,_=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await d(_,[c]):await d({paradigm:r,queryString:_,database:t,queryValues:[c]})}catch(e){return null}}e.exports=a},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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")},81630:e=>{e.exports=require("http")},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}}})},71405:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>g,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),o=t(2706),a=t(96762),i=t(33873),c=t.n(i),l=t(48225),u=t.n(l),_=t(6420),d=t.n(_),S=t(48227),p=t.n(S),f=t(64122),m=t.n(f);let E=t(29021);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await d()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{media_name:n,media_url:o,media_thumbnail_url:a,media_path:i,media_thumbnail_path:l,folder:_}=s;"production".match(/production/);try{let e=s?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let n=p()({isPrivate:e,user:t,folder:s.folder?s.folder+"/":"",video:!!s.media_type?.match(/video/i)});if(!n)throw Error("Couldn't grab paths!");let{fileRootPath:i,urlRootPath:l,relativePath:u}=n;_?.match(/./);let d=o.match(/[^\/]+$/)[0],S=a.match(/[^\/]+$/)[0],f=c().normalize(i+d),D=c().normalize(i+S);E.unlinkSync(f);try{E.unlinkSync(D)}catch(e){}await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:s.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),u()({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let g=(0,a.M)(s,"default"),v=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:s})},48227:(e,r,t)=>{let s=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:o,pathOnly:a}){"production".match(/production/);let i=r?.id||r?.user_id,c=process.env.DSQL_STATIC_SERVER_DIR;if(!c)return console.log("Static File ENV not Found!"),null;let l=e?`@/${o?"videos":"media"}/${t?t+"/":""}`:o?`/videos/user-videos/user-${i}/${t?t+"/":""}`:`/images/user-images/user-${i}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/media/${t?t+"/":""}`:n.join(c,l);return s.existsSync(u)||a||s.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:c,useLocal:l}){try{let u=!!l||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),_=l?o:u?s:n,d=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await _(d,[c]):await _({paradigm:r,queryString:d,database:t,queryValues:[c]})}catch(e){return null}}e.exports=a},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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: ${a.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function _(e){a.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(t,i).then(d).catch(_):a.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=71405);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(t,i).then(_).catch(d):a.query(t).then(_).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=71405);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 0fcfeef..23a857e 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js @@ -1,4 +1,4 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},77379:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>D,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var a=t(89947),n=t(2706),l=t(96762),o=t(57638),i=t.n(o),c=t(48225),u=t.n(c),d=t(6420),_=t.n(d),p=t(51348),S=t.n(p);let f=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(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:c}=s.table,{db_full_name:d}=s.database;await i()({database:d,queryString:`DROP TABLE \`${o}\``});let p=a?[a]:[o,t.id,s.database.id];await S()(a?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",p);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,a=JSON.parse(f.readFileSync(s,"utf8")),n=a.filter((e,r)=>{if(e.dbFullName===d)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 S()("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[o,t.id,e.dbSlug])}catch(e){u()({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}f.writeFileSync(`${s}`,JSON.stringify(a),"utf8"),r.json({success:!0})}catch(e){u()({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let D=(0,l.M)(s,"default"),E=(0,l.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),l=t(31341);async function o(e,r,t,o){let{keyCookieName:i,csrfCookieName:c}=l();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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")},81630:e=>{e.exports=require("http")},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}}})},77379:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>D,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var a=t(89947),n=t(2706),l=t(96762),o=t(57638),i=t.n(o),c=t(48225),u=t.n(c),d=t(6420),_=t.n(d),p=t(51348),S=t.n(p);let f=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(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:c}=s.table,{db_full_name:d}=s.database;await i()({database:d,queryString:`DROP TABLE \`${o}\``});let p=a?[a]:[o,t.id,s.database.id];await S()(a?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",p);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,a=JSON.parse(f.readFileSync(s,"utf8")),n=a.filter((e,r)=>{if(e.dbFullName===d)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 S()("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[o,t.id,e.dbSlug])}catch(e){u()({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}f.writeFileSync(`${s}`,JSON.stringify(a),"utf8"),r.json({success:!0})}catch(e){u()({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let D=(0,l.M)(s,"default"),E=(0,l.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),l=t(31341);async function o(e,r,t,o){let{keyCookieName:i,csrfCookieName:c}=l();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:n,csrfCookieName:l+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),l=t(21339),o=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),_=c?o:d?n:l;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=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(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(l,o,i),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function l(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:o}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){l.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){l.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,sql:e.sql})}l=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),o&&Array.isArray(o)&&o[0]?l.query(t,o).then(d).catch(_):l.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77379);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),l=t(21339),o=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?o:d?n:l;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=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(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(l,o,i),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function l(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:o}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){l.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){l.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,sql:e.sql})}l=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),o&&Array.isArray(o)&&o[0]?l.query(t,o).then(d).catch(_):l.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77379);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 6e3fe0d..84a1088 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")},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")},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}}})},83246:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(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:a}=s;await u()("DELETE FROM user_users WHERE id=?",[s.id]),n?.match(/admin/i)&&(await u()("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.id,o]),await u()("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[a,t.id])),r.json({success:!0,msg:"User Deleted!"})}t(29021);let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83246);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")},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")},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}}})},83246:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(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:a}=s;await u()("DELETE FROM user_users WHERE id=?",[s.id]),n?.match(/admin/i)&&(await u()("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.id,o]),await u()("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[a,t.id])),r.json({success:!0,msg:"User Deleted!"})}t(29021);let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83246);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 3143a31..0a50b66 100644 --- a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js @@ -1,16 +1,16 @@ -"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")},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")},81630:e=>{e.exports=require("http")},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}}})},3535:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762);t(17029);var i=t(6420),l=t.n(i);let c=t(29021),u=t(33873);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;try{let e=u.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!c.existsSync(e))return r.end();let n=JSON.parse(c.readFileSync(e,"utf-8")).find(e=>e.dbFullName==s);if(!n)throw Error("Database not found!");let o=u.resolve(process.cwd(),"./.tmp/_tmp.json");c.writeFileSync(o,JSON.stringify(n),"utf-8");let a=c.createReadStream(o);a.pipe(r),a.on("close",()=>{c.unlinkSync(o)})}catch(e){return console.log(e),r.end()}}let d=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:s})},17029:(e,r,t)=>{let s=t(29021),n=t(21820),{execSync:o}=t(79646),a=t(48225),{ServerResponse:i}=t(81630);e.exports=async function({dbName:e,user:r,res:t}){let i=n.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let a={cwd:process.cwd()},l=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;n.platform().match(/win/i)&&(a.shell="bash.exe");let c=`${i} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${l}`;console.log(`exportDb.js exe => ${c}`),o(c,a),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),s.createReadStream(l).pipe(t)}catch(e){a({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 n=`🚀 SERVER ERROR =========================== +"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")},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")},81630:e=>{e.exports=require("http")},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}}})},3535:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),i=t(96762);t(17029);var a=t(6420),l=t.n(a);let c=t(29021),u=t(33873);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;try{let e=u.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!c.existsSync(e))return r.end();let n=JSON.parse(c.readFileSync(e,"utf-8")).find(e=>e.dbFullName==s);if(!n)throw Error("Database not found!");let o=u.resolve(process.cwd(),"./.tmp/_tmp.json");c.writeFileSync(o,JSON.stringify(n),"utf-8");let i=c.createReadStream(o);i.pipe(r),i.on("close",()=>{c.unlinkSync(o)})}catch(e){return console.log(e),r.end()}}let d=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:s})},17029:(e,r,t)=>{let s=t(29021),n=t(21820),{execSync:o}=t(79646),i=t(48225),{ServerResponse:a}=t(81630);e.exports=async function({dbName:e,user:r,res:t}){let a=n.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let i={cwd:process.cwd()},l=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;n.platform().match(/win/i)&&(i.shell="bash.exe");let c=`${a} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${l}`;console.log(`exportDb.js exe => ${c}`),o(c,i),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),s.createReadStream(l).pipe(t)}catch(e){i({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` -Date: ${a.toDateString()} +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${i.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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3535);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,l=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 c=n("aes-192-cbc",s(i,a,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3535);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 92499a8..64ac282 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")},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")},81630:e=>{e.exports=require("http")},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}}})},46897:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(17029),l=t.n(i),c=t(6420),u=t.n(c);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;await l()({dbName:s?.toString()||"",res:r,user:t})}let d=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:s})},17029:(e,r,t)=>{let s=t(29021),n=t(21820),{execSync:o}=t(79646),a=t(48225),{ServerResponse:i}=t(81630);e.exports=async function({dbName:e,user:r,res:t}){let i=n.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let a={cwd:process.cwd()},l=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;n.platform().match(/win/i)&&(a.shell="bash.exe");let c=`${i} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${l}`;console.log(`exportDb.js exe => ${c}`),o(c,a),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),s.createReadStream(l).pipe(t)}catch(e){a({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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")},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")},81630:e=>{e.exports=require("http")},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}}})},46897:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),i=t(96762),a=t(17029),l=t.n(a),c=t(6420),u=t.n(c);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;await l()({dbName:s?.toString()||"",res:r,user:t})}let _=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:s})},17029:(e,r,t)=>{let s=t(29021),n=t(21820),{execSync:o}=t(79646),i=t(48225),{ServerResponse:a}=t(81630);e.exports=async function({dbName:e,user:r,res:t}){let a=n.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let i={cwd:process.cwd()},l=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;n.platform().match(/win/i)&&(i.shell="bash.exe");let c=`${a} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${l}`;console.log(`exportDb.js exe => ${c}`),o(c,i),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),s.createReadStream(l).pipe(t)}catch(e){i({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` -Date: ${a.toDateString()} +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${i.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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=46897);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,l=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 c=n("aes-192-cbc",s(i,a,l),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=46897);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 e72ed88..fbbaed0 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={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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},724:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>m});var s={};t.r(s),t.d(s,{config:()=>c,default:()=>d});var a=t(89947),n=t(2706),i=t(96762),o=t(6420),l=t.n(o),u=t(27444);let c={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:s,dbName:a,tableName:n,payload:i}=e.body;try{let e=await (0,u.A)({dbName:a,paradigm:s,payload:i,tableName:n,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 p=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:s})},27444:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(47670),a=t.n(s);let n=t(48225),i=t(51348);async function o({paradigm:e,userId:r,dbName:t,tableName:s,payload:o,payloadType:l}){let u={};try{let n=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await i(`SELECT * FROM \`${n}\`.\`${s}\``);u.tableData=c;break;case"import":let d="base64"==l?Buffer.from(o,"base64").toString():o,p="object"===l?o:JSON.parse(d);for(let e=0;e{t(81630);let s=t(51348),a=t(72835),n=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=i();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let i=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 a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4727,e.ids=[4727],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},724:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>m});var s={};t.r(s),t.d(s,{config:()=>c,default:()=>d});var a=t(89947),n=t(2706),i=t(96762),o=t(6420),l=t.n(o),u=t(27444);let c={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:s,dbName:a,tableName:n,payload:i}=e.body;try{let e=await (0,u.A)({dbName:a,paradigm:s,payload:i,tableName:n,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 p=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:s})},27444:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(47670),a=t.n(s);let n=t(48225),i=t(51348);async function o({paradigm:e,userId:r,dbName:t,tableName:s,payload:o,payloadType:l}){let u={};try{let n=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await i(`SELECT * FROM \`${n}\`.\`${s}\``);u.tableData=c;break;case"import":let d="base64"==l?Buffer.from(o,"base64").toString():o,p="object"===l?o:JSON.parse(d);for(let e=0;e{t(81630);let s=t(51348),a=t(72835),n=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:u}=i();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let i=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 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/fetch-entries-basic.js b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js index 1a02795..520f97b 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")},81630:e=>{e.exports=require("http")},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}}})},62229:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762),l=t(57638),i=t.n(l);let c=t(73677),u=t(39831),d=t(48225),_=t(6420);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:l,isFullName:p,defaultField:S}=e.body;try{let d=await u({databaseSlug:a,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,f=`SELECT id${o?",title":l?",slug":p?",CONCAT(first_name, ' ', last_name) AS full_name":S?","+S:""} FROM ${s}`,g=await i()({database:_,queryString:f});r.json({success:!0,entries:g})}catch(e){d({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 S=(0,o.M)(s,"default"),f=(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})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:l}){let i,c;try{r?.delegated?(i=await s("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=i[0]?.priviledge?.match(o)):(i=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),c=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!i&&!!i[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 a=`🚀 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")},81630:e=>{e.exports=require("http")},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}}})},62229:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762),l=t(57638),i=t.n(l);let c=t(73677),u=t(39831),d=t(48225),_=t(6420);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:l,isFullName:p,defaultField:S}=e.body;try{let d=await u({databaseSlug:a,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,f=`SELECT id${o?",title":l?",slug":p?",CONCAT(first_name, ' ', last_name) AS full_name":S?","+S:""} FROM ${s}`,g=await i()({database:_,queryString:f});r.json({success:!0,entries:g})}catch(e){d({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 S=(0,o.M)(s,"default"),f=(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})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:l}){let i,c;try{r?.delegated?(i=await s("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=i[0]?.priviledge?.match(o)):(i=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),c=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!i&&!!i[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),{keyCookieName:n,csrfCookieName:o+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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: ${o.toDateString()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339),l=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),_=c?l:d?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(o,l,i),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62229);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339),l=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?l:d?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=a("aes-192-cbc",s(o,l,i),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62229);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 b8984ad..474a2b3 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,16 +1,16 @@ -"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")},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")},81630:e=>{e.exports=require("http")},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}}})},0:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(2258),l=t(48225),u=t.n(l),c=t(6420),d=t.n(c),p=t(27825),f=t.n(p),_=t(51348),S=t.n(_);t(29021),t(33873);let{execSync:E}=t(79646);async function g(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await d()(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 S()("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),n=(0,i.default)({userId:String(s)});if(!n)throw Error("Root user schema not found!");let a=[];e.forEach(e=>{let r=a.findIndex(r=>r.dbSlug===e.database),t=n.find(r=>r.dbSlug===e.database);if(t){let s=a[r]?a[r]:{...t,tables:[]},n=f().cloneDeep(t.tables).find(r=>r.tableName===e.table);n&&a[r]?a[r]={...s,tables:[...a[r].tables,n]}:n&&!a[r]&&a.push({...t,tables:[n]})}}),r.json({success:!0,payload:a})}catch(e){console.log("ERROR:",e.message),u()({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let m=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=o();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let s=t(48225),n=t(29021),a=t(33873);function o({userId:e}){try{let r=a.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 s({component:"grabUserSchemaData",message:e.message}),null}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},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")},81630:e=>{e.exports=require("http")},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}}})},0:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),o=t(2706),a=t(96762),i=t(2258),l=t(48225),u=t.n(l),c=t(6420),d=t.n(c),p=t(27825),_=t.n(p),f=t(51348),S=t.n(f);t(29021),t(33873);let{execSync:E}=t(79646);async function g(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await d()(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 S()("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),n=(0,i.default)({userId:String(s)});if(!n)throw Error("Root user schema not found!");let o=[];e.forEach(e=>{let r=o.findIndex(r=>r.dbSlug===e.database),t=n.find(r=>r.dbSlug===e.database);if(t){let s=o[r]?o[r]:{...t,tables:[]},n=_().cloneDeep(t.tables).find(r=>r.tableName===e.table);n&&o[r]?o[r]={...s,tables:[...o[r].tables,n]}:n&&!o[r]&&o.push({...t,tables:[n]})}}),r.json({success:!0,payload:o})}catch(e){console.log("ERROR:",e.message),u()({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let m=(0,a.M)(s,"default"),h=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=a();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});let s=t(48225),n=t(29021),o=t(33873);function a({userId:e}){try{let r=o.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 s({component:"grabUserSchemaData",message:e.message}),null}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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)}`),i&&(n+=` +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` IP: ${i}`),n+=` -Date: ${o.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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=0);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=n("aes-192-cbc",s(a,i,l),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=0);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 da92e05..7379282 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")},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")},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}}})},34029:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(6420),l=t.n(i),u=t(48225),c=t.n(u),d=t(51348),_=t.n(d);async function p(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(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 _()("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 _()("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[n,e[0].id]),o=await _()("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){c()({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=o();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},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")},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}}})},34029:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(6420),l=t.n(i),u=t(48225),c=t.n(u),d=t(51348),_=t.n(d);async function p(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(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 _()("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 _()("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[n,e[0].id]),o=await _()("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){c()({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=o();if(!e.cookies?.[l]?.match(/./))return null;let c=n({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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/getDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js index 7f826ee..069f0f5 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")},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")},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}}})},94057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(20503),u=t.n(c),d=t(48225),_=t.n(d),p=t(6420),E=t.n(p);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await E()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,n=e.body.priviledges,a=e.body.database;try{let e=await l()("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,a]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${a} database belonging to user ${s}`);let o=(await l()("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,a])).map(e=>e.table),i=await l()("SELECT * FROM users WHERE id=?",[s]),c={rootUserId:s,rootUserName:`${i[0].first_name} ${i[0].last_name}`,rootUserEmail:i[0].email,rootUserImage:i[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${a}`,databaseSlug:a,allowedTables:o,priviledges:n,dateCreated:Date.now()},d=u()({data:JSON.stringify(c)}),_=`${process.env.DSQL_USER_DB_PREFIX}${c.rootUserId}_${a}`,p=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${_}`;r.setHeader("Set-Cookie",[`${p}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),_()({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},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")},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}}})},94057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(20503),u=t.n(c),d=t(48225),_=t.n(d),p=t(6420),E=t.n(p);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await E()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,n=e.body.priviledges,a=e.body.database;try{let e=await l()("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,a]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${a} database belonging to user ${s}`);let o=(await l()("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,a])).map(e=>e.table),i=await l()("SELECT * FROM users WHERE id=?",[s]),c={rootUserId:s,rootUserName:`${i[0].first_name} ${i[0].last_name}`,rootUserEmail:i[0].email,rootUserImage:i[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${a}`,databaseSlug:a,allowedTables:o,priviledges:n,dateCreated:Date.now()},d=u()({data:JSON.stringify(c)}),_=`${process.env.DSQL_USER_DB_PREFIX}${c.rootUserId}_${a}`,p=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${_}`;r.setHeader("Set-Cookie",[`${p}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),_()({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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/getDelegatedDatabases.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js index 8b8ff2b..38733c2 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")},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")},96762:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,r){return r in s?s[r]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,r)):"function"==typeof s&&"default"===r?s:void 0}}})},1199:(e,s,r)=>{r.r(s),r.d(s,{config:()=>f,default:()=>d,routeModule:()=>p});var t={};r.r(t),r.d(t,{default:()=>c});var n=r(89947),a=r(2706),i=r(96762),u=r(51348),o=r.n(u),l=r(6420),_=r.n(l);async function c(e,s){if("GET"!==e.method)return s.json({msg:"Failed!"});let r=await _()(e,s);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=await o()(` +"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")},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")},96762:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,r){return r in s?s[r]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,r)):"function"==typeof s&&"default"===r?s:void 0}}})},1199:(e,s,r)=>{r.r(s),r.d(s,{config:()=>p,default:()=>d,routeModule:()=>f});var t={};r.r(t),r.d(t,{default:()=>c});var n=r(89947),i=r(2706),a=r(96762),u=r(51348),o=r.n(u),_=r(6420),l=r.n(_);async function c(e,s){if("GET"!==e.method)return s.json({msg:"Failed!"});let r=await l()(e,s);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=await o()(` 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='${r.id}' - `),n=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${a}`);for(let e=0;e{r(81630);let t=r(51348),n=r(72835),a=r(29021),i=r(31341);async function u(e,s,r,u){let{keyCookieName:o,csrfCookieName:l}=i();if(!e.cookies?.[o]?.match(/./))return null;let _=n({encryptedString:e.cookies[o]});if(!_)return null;let c=JSON.parse(_);if(!c.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${d}/${c.csrf_k}`))return null;if(0==c.verification_status&&!r){let e=await t(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=u},31341:e=>{e.exports=function(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",n=s;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let a=s;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=t}}},72835:(e,s,r)=>{let{scryptSync:t,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,u=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(i,u,o),a.alloc(16,0));try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},51348:(e,s,r)=>{let t=r(9973),n=r(21580),a=t({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:n()}});async function i(...e){try{let s=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,s,r)=>{let t=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!t.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,s)=>{var r;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,s,r)=>{e.exports=r(75600)}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=s(s.s=1199);module.exports=r})(); \ No newline at end of file + `),n=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${i}`);for(let e=0;e{r(81630);let t=r(51348),n=r(72835),i=r(29021),a=r(31341);async function u(e,s,r,u){let{keyCookieName:o,csrfCookieName:_}=a();if(!e.cookies?.[o]?.match(/./))return null;let l=n({encryptedString:e.cookies[o]});if(!l)return null;let c=JSON.parse(l);if(!c.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${d}/${c.csrf_k}`))return null;if(0==c.verification_status&&!r){let e=await t(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=u},31341:e=>{e.exports=function(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",n=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=s;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let a=s;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:i,csrfCookieName:a+=t}}},72835:(e,s,r)=>{let{scryptSync:t,createDecipheriv:n}=r(55511),{Buffer:i}=r(79428);e.exports=({encryptedString:e,encryptionKey:s,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=s||process.env.DSQL_ENCRYPTION_PASSWORD,u=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(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let _=n("aes-192-cbc",t(a,u,o),i.alloc(16,0));try{let s=_.update(e,"hex","utf8");return s+=_.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},51348:(e,s,r)=>{let t=r(9973),n=r(21580),i=t({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:n()}});async function a(...e){try{let s=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,s,r)=>{let t=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!t.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,s)=>{var r;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,s,r)=>{e.exports=r(75600)}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=s(s.s=1199);module.exports=r})(); \ 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 e81a6d6..e92f6fd 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")},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")},81630:e=>{e.exports=require("http")},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}}})},12155:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>E,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),c=t.n(a),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d);let _=t(29021),m=t(33873),{execSync:S}=t(79646);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=(await c()(` +"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")},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")},81630:e=>{e.exports=require("http")},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}}})},12155:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>E,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),c=t.n(a),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d);let _=t(29021),S=t(33873),{execSync:m}=t(79646);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=(await c()(` 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}%`])).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||_.existsSync(i)||_.mkdirSync(i,{recursive:!0});let o=m.join(i,`images/user-images/user-${t.id}`);_.existsSync(o)||_.mkdirSync(o,{recursive:!0});let a=m.join(i,`images/user-images/user-${t.id}`),l=m.join(i,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=_.readdirSync(e);for(let t=0;t ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),u()({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}_.existsSync(l)||_.mkdirSync(l,{recursive:!0}),await s(a),await s(l);let d=n+e;r.json({success:!0,total:d})}catch(e){u()({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let E=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== + `,[`datasquirel_user_${t.id}%`])).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||_.existsSync(i)||_.mkdirSync(i,{recursive:!0});let o=S.join(i,`images/user-images/user-${t.id}`);_.existsSync(o)||_.mkdirSync(o,{recursive:!0});let a=S.join(i,`images/user-images/user-${t.id}`),l=S.join(i,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=_.readdirSync(e);for(let t=0;t ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),u()({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}_.existsSync(l)||_.mkdirSync(l,{recursive:!0}),await s(a),await s(l);let d=n+e;r.json({success:!0,total:d})}catch(e){u()({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let E=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}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/getUserDatabaseTables.js b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js index c9b6afa..e5038a9 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")},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")},81630:e=>{e.exports=require("http")},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}}})},34132:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),u=t.n(i),c=t(6420),l=t.n(c);t(29021),t(33873);let{execSync:_}=t(79646);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`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 p=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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=n("aes-192-cbc",s(o,i,u),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=34132);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")},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")},81630:e=>{e.exports=require("http")},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}}})},34132:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),i=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);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 l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`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"),f=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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 c=n("aes-192-cbc",s(i,a,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=34132);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 6dfb45d..94bc8e9 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")},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")},81630:e=>{e.exports=require("http")},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}}})},31829:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),u=t.n(i),c=t(6420),l=t.n(c);t(29021),t(33873);let{execSync:_}=t(79646);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${t.id}'`);r.json({success:!0,databases:s})}let p=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=a();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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=n("aes-192-cbc",s(a,i,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31829);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")},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")},81630:e=>{e.exports=require("http")},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}}})},31829:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),i=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);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 l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`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"),f=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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 c=n("aes-192-cbc",s(i,a,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31829);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 234cc57..cb657bc 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")},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")},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}}})},77148:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`SELECT * FROM user_media WHERE user_id=${t.id} ORDER BY id DESC`);r.json({media:s})}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77148);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")},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")},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}}})},77148:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a),c=t(6420),l=t.n(c);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`SELECT * FROM user_media WHERE user_id=${t.id} ORDER BY id DESC`);r.json({media:s})}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,a,u),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77148);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 22f46b6..e4d9256 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js @@ -1,16 +1,16 @@ -"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")},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")},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}}})},58301:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762);t(39831);var i=t(48225),l=t.n(i),c=t(6420),u=t.n(c);let d=t(29021);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(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(d.readFileSync(e,"utf8"));r.json({success:!0,schemaData:s})}catch(e){l()({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let _=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 a=`🚀 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")},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")},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}}})},58301:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762);t(39831);var i=t(48225),l=t.n(i),c=t(6420),u=t.n(c);let d=t(29021);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(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(d.readFileSync(e,"utf8"));r.json({success:!0,schemaData:s})}catch(e){l()({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let _=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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}`),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}`),a?.url&&(n+=` +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",a),s.appendFileSync("./.tmp/error.log",` +========================================`,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)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({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,l=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=a("aes-192-cbc",s(o,i,l),n.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58301);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58301);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabase.js b/dsql-app/.local_dist/server/pages/api/importDatabase.js index 1c75115..d15b2a3 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={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")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},75588:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>g,routeModule:()=>b});var a={};r.r(a),r.d(a,{default:()=>S});var s=r(89947),l=r(2706),n=r(96762),i=r(72350),o=r.n(i),u=r(48225),c=r.n(u),d=r(6420),p=r.n(d);let m=r(29021),f=r(21820),{execSync:_}=r(79646);async function S(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await p()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{database:a,fileBase64:s}=e.body;a?.db_full_name?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});try{let e=`user-${r.id}-temp-sql`,l=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";m.writeFileSync(`./.tmp/${e}.sql`,s,"base64");let n={cwd:process.cwd()};f.platform().match(/win/i)&&(n.shell="bash.exe"),_(`${l} -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`,n);let i=await o()({database:a,userId:r.id});t.json({success:!!i})}catch(e){console.log(e),c()({component:"/api/importDatabase/catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Import Failed!"})}}let g=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},72350:(e,t,r)=>{let a=r(57638),{default:s}=r(2258),{default:l}=r(78634),n=r(47670),i=r(24256);e.exports=async function({userId:e,database:t}){try{if(!e){console.log("No user Id provided");return}let r=s({userId:e});if(!r)throw Error("User schema data not found!");let o=r.filter(e=>e.dbFullName===t.db_full_name)[0],u=await a({database:t.db_full_name,queryString:"SHOW TABLES"});if(!u)throw Error("No Existing Tables");for(let r=0;re.Field===a)[0],u=c.indexes?.filter(e=>e.indexName==r);u&&u[0]?u[0].indexTableFields?.push({value:a,dataType:o.Type.toUpperCase()}):(i.indexTableFields=[{value:a,dataType:o.Type.toUpperCase()}],c.indexes?.push(i))}o.tables.push(c)}return l({schemaData:r,userId:e}),!0}catch(e){return console.log(e),!1}}},6420:(e,t,r)=>{r(81630);let a=r(51348),s=r(72835),l=r(29021),n=r(31341);async function i(e,t,r,i){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let c=s({encryptedString:e.cookies[o]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!l.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await 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"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=t;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=r;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),{keyCookieName:s,csrfCookieName:l+=a}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2258:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(48225),s=r(29021),l=r(33873);function n({userId:e}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(t,"utf-8"))}catch(e){return a({component:"grabUserSchemaData",message:e.message}),null}}},6061:(e,t,r)=>{let a=r(72835),s=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}},48225:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,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"],r=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8675,e.ids=[8675],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")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},75588:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>g,routeModule:()=>y});var a={};r.r(a),r.d(a,{default:()=>S});var s=r(89947),l=r(2706),n=r(96762),i=r(72350),o=r.n(i),u=r(48225),c=r.n(u),d=r(6420),p=r.n(d);let m=r(29021),f=r(21820),{execSync:_}=r(79646);async function S(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await p()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{database:a,fileBase64:s}=e.body;a?.db_full_name?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});try{let e=`user-${r.id}-temp-sql`,l=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";m.writeFileSync(`./.tmp/${e}.sql`,s,"base64");let n={cwd:process.cwd()};f.platform().match(/win/i)&&(n.shell="bash.exe"),_(`${l} -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`,n);let i=await o()({database:a,userId:r.id});t.json({success:!!i})}catch(e){console.log(e),c()({component:"/api/importDatabase/catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Import Failed!"})}}let g=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),y=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},72350:(e,t,r)=>{let a=r(57638),{default:s}=r(2258),{default:l}=r(78634),n=r(47670),i=r(24256);e.exports=async function({userId:e,database:t}){try{if(!e){console.log("No user Id provided");return}let r=s({userId:e});if(!r)throw Error("User schema data not found!");let o=r.filter(e=>e.dbFullName===t.db_full_name)[0],u=await a({database:t.db_full_name,queryString:"SHOW TABLES"});if(!u)throw Error("No Existing Tables");for(let r=0;re.Field===a)[0],u=c.indexes?.filter(e=>e.indexName==r);u&&u[0]?u[0].indexTableFields?.push({value:a,dataType:o.Type.toUpperCase()}):(i.indexTableFields=[{value:a,dataType:o.Type.toUpperCase()}],c.indexes?.push(i))}o.tables.push(c)}return l({schemaData:r,userId:e}),!0}catch(e){return console.log(e),!1}}},6420:(e,t,r)=>{r(81630);let a=r(51348),s=r(72835),l=r(29021),n=r(31341);async function i(e,t,r,i){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let c=s({encryptedString:e.cookies[o]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!l.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await 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"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=t;e?.userId&&(l+=`user_${e.userId}_`),s&&(l+=`${s}_`),l+=r;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),{keyCookieName:l,csrfCookieName:n+=a}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2258:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(48225),s=r(29021),l=r(33873);function n({userId:e}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(t,"utf-8"))}catch(e){return a({component:"grabUserSchemaData",message:e.message}),null}}},6061:(e,t,r)=>{let a=r(72835),s=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}},48225:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,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"],r=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||l.socket.remoteAddress;if(!s)return null;return String(s)}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: ${n.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},78634:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(48225),s=r(29021),l=r(33873);function n({userId:e,schemaData:t}){try{let r=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return s.writeFileSync(r,JSON.stringify(t),"utf8"),!0}catch(e){return a({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},57638:(e,t,r)=>{r(29021);let a=r(6061),s=r(48225),l=r(51348),n=r(21339),i=r(44900);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:o,useLocal:u}){let c;let d=!!r?.match(/^datasquirel$/),p=u?i:d?l:n;try{c=e&&t&&Array.isArray(t)&&t[0]?d?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):d?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await a({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:s}=r(55511),{Buffer:l}=r(79428);e.exports=({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 u=s("aes-192-cbc",a(n,i,o),l.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},24256:e=>{e.exports=function(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[4050],()=>r(75588));module.exports=a})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},78634:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(48225),s=r(29021),l=r(33873);function n({userId:e,schemaData:t}){try{let r=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return s.writeFileSync(r,JSON.stringify(t),"utf8"),!0}catch(e){return a({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},57638:(e,t,r)=>{r(29021);let a=r(6061),s=r(48225),l=r(51348),n=r(21339),i=r(44900);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:o,useLocal:u}){let c;let d=!!u||!!r?.match(/^datasquirel$/),p=u?i:d?l:n;try{c=e&&t&&Array.isArray(t)&&t[0]?d?await p(e,t):await p({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):d?await p(e):await p({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await a({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:s}=r(55511),{Buffer:l}=r(79428);e.exports=({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 u=s("aes-192-cbc",a(n,i,o),l.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},24256:e=>{e.exports=function(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[4050],()=>r(75588));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 ce23b13..311e1b2 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={60818:e=>{e.exports=require("dotenv")},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")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},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}}})},56807:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),u=t.n(i),c=t(6420),l=t.n(c),d=t(19261),f=t.n(d);let _=t(29021),p=t(33873);t(21820);let{execSync:S}=t(79646);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,fileBase64:n}=e.body;s?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(n,"base64").toString("utf-8"),a=JSON.parse(e),o=p.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!_.existsSync(o))return r.end();let i=JSON.parse(_.readFileSync(o,"utf-8")),u=i.find(e=>e.dbFullName==s.db_full_name);if(!u)throw Error("Database not found!");u.tables=a.tables,_.writeFileSync(o,JSON.stringify(i),"utf-8"),await f()({userId:t.id,targetDatabase:s.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),u()({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,o.M)(s,"default"),P=(0,o.M)(s,"config"),v=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${f}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(56807));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={60818:e=>{e.exports=require("dotenv")},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")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},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}}})},56807:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),u=t.n(i),c=t(6420),l=t.n(c),_=t(19261),p=t.n(_);let d=t(29021),f=t(33873);t(21820);let{execSync:S}=t(79646);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,fileBase64:n}=e.body;s?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(n,"base64").toString("utf-8"),a=JSON.parse(e),o=f.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!d.existsSync(o))return r.end();let i=JSON.parse(d.readFileSync(o,"utf-8")),u=i.find(e=>e.dbFullName==s.db_full_name);if(!u)throw Error("Database not found!");u.tables=a.tables,d.writeFileSync(o,JSON.stringify(i),"utf-8"),await p()({userId:t.id,targetDatabase:s.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),u()({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,o.M)(s,"default"),P=(0,o.M)(s,"config"),v=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=o();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(56807));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 4d665c7..158ccd8 100644 --- a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={27825:e=>{e.exports=require("lodash")},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")},81630:e=>{e.exports=require("http")},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}}})},22790:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),n=t(2706),o=t(96762),l=t(6420),c=t.n(l),i=t(48225),u=t.n(i);t(27825);var d=t(39831),p=t.n(d),_=t(57638),S=t.n(_);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await c()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;try{let a=await p()({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,c=s.page,i=20*c,u=`SELECT * FROM ${l}`,d=[];s.search&&s.searchField&&(u+=` WHERE LOWER(\`${s.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,d.push(`%${s.search.toLowerCase()}%`)),u+=` ORDER BY id DESC LIMIT 20 OFFSET ${i}`;let _=await S()({database:o,queryString:u,queryValuesArray:d,tableSchema:s.tableSchema}),f={success:!0,data:_,page:Number(c)+1};r.json(f)}catch(e){u()({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}t(29021);let m=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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,c=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,i=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${c}`;try{if(!e.cookies?.[i])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[i]});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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:c,csrfCookieName:i}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=a({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={27825:e=>{e.exports=require("lodash")},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")},81630:e=>{e.exports=require("http")},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}}})},22790:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),n=t(2706),o=t(96762),l=t(6420),c=t.n(l),i=t(48225),u=t.n(i);t(27825);var d=t(39831),_=t.n(d),p=t(57638),S=t.n(p);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await c()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;try{let a=await _()({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,c=s.page,i=20*c,u=`SELECT * FROM ${l}`,d=[];s.search&&s.searchField&&(u+=` WHERE LOWER(\`${s.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,d.push(`%${s.search.toLowerCase()}%`)),u+=` ORDER BY id DESC LIMIT 20 OFFSET ${i}`;let p=await S()({database:o,queryString:u,queryValuesArray:d,tableSchema:s.tableSchema}),f={success:!0,data:p,page:Number(c)+1};r.json(f)}catch(e){u()({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}t(29021);let m=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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,c=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,i=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${c}`;try{if(!e.cookies?.[i])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[i]});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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function l(e,r,t,l){let{keyCookieName:c,csrfCookieName:i}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=a({encryptedString:e.cookies[c]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),{keyCookieName:n,csrfCookieName:o+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339),l=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!t?.match(/^datasquirel$/),p=i?l:d?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=a("aes-192-cbc",s(o,l,c),n.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((c,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22790);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339),l=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!i||!!t?.match(/^datasquirel$/),_=i?l:d?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=a("aes-192-cbc",s(o,l,c),n.alloc(16,0));try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=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:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((c,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),a=t(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22790);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 ac13b2e..858e44a 100644 --- a/dsql-app/.local_dist/server/pages/api/loginUser.js +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js @@ -1,7 +1,7 @@ -"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={27825:e=>{e.exports=require("lodash")},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")},33873:e=>{e.exports=require("path")},95122:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>A,routeModule:()=>R});var s={};t.r(s),t.d(s,{default:()=>b});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),l=t.n(o),u=t(44767),d=t.n(u),_=t(48225),m=t.n(_),c=t(59474),p=t.n(c),g=t(91766),f=t.n(g),S=t(31341),E=t.n(S),h=t(14533),y=t.n(h);let L=t(29021),v=t(20503);async function b(e,r){if("POST"===e.method){let t=e.body,s=t.email,i=t.password,a=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",u=y()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:i});if(i?.match(/ /)||s?.match(/ /))return r.json({msg:"Failed!",user:null});let _=await l()("SELECT * FROM users WHERE email=? OR username=?",[s,s]);if(!_||!_[0])return r.json({msg:"No user found",user:null});let m=!1;if(_&&_[0]&&(m=u===_[0].password),!m)return await f()(),p()({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 c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),g={id:_[0].id,stripe_id:_[0].stripe_id||"",first_name:_[0].first_name,last_name:_[0].last_name,username:_[0].username,email:_[0].email,social_id:_[0].social_id,image:_[0].image,image_thumbnail:_[0].image_thumbnail,verification_status:_[0].verification_status,social_login:_[0].social_login,social_platform:_[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()},S=v({data:JSON.stringify(g)}),{keyCookieName:h,csrfCookieName:b}=E()();r.setHeader("Set-Cookie",[`${h}=${S};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${b}=${c};samesite=strict;path=/;HttpOnly=true`]),L.appendFile("./.tmp/userLoginLogs.log",`${_[0].first_name} ${_[0].last_name} Logged in from ${_[0].social_login?_[0].social_platform:"Regular Email Login"} at ${Date()} +"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={27825:e=>{e.exports=require("lodash")},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")},33873:e=>{e.exports=require("path")},95122:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>D,routeModule:()=>R});var s={};t.r(s),t.d(s,{default:()=>A});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),l=t.n(o),u=t(44767),d=t.n(u),_=t(48225),m=t.n(_),c=t(59474),p=t.n(c),g=t(91766),f=t.n(g),S=t(31341),E=t.n(S),h=t(14533),y=t.n(h);let L=t(29021),v=t(20503);async function A(e,r){if("POST"===e.method){let t=e.body,s=t.email,i=t.password,a=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",u=y()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:i});if(i?.match(/ /)||s?.match(/ /))return r.json({msg:"Failed!",user:null});let _=await l()("SELECT * FROM users WHERE email=? OR username=?",[s,s]);if(!_||!_[0])return r.json({msg:"No user found",user:null});let m=!1;if(_&&_[0]&&(m=u===_[0].password),!m)return await f()(),p()({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 c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),g={id:_[0].id,stripe_id:_[0].stripe_id||"",first_name:_[0].first_name,last_name:_[0].last_name,username:_[0].username,email:_[0].email,social_id:_[0].social_id,image:_[0].image,image_thumbnail:_[0].image_thumbnail,verification_status:_[0].verification_status,social_login:_[0].social_login,social_platform:_[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()},S=v({data:JSON.stringify(g)}),{keyCookieName:h,csrfCookieName:A}=E()();r.setHeader("Set-Cookie",[`${h}=${S};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${A}=${c};samesite=strict;path=/;HttpOnly=true`]),L.appendFile("./.tmp/userLoginLogs.log",`${_[0].first_name} ${_[0].last_name} Logged in from ${_[0].social_login?_[0].social_platform:"Regular Email Login"} at ${Date()} -`,"utf8",e=>{e&&console.log("Loging log write error")}),L.writeFileSync(`${t}/${c}`,JSON.stringify(g)),a?.invite&&d()({query:a,user:{...g,phone:_[0].phone}}),await f()(),p()({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:_[0].id,csrf_k:c,stripe_id:_[0].stripe_id||""},userPayload:g})}catch(e){console.log("Login Error =>",e.message),m()({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:s}})}}else r.json({msg:"Oops ..."})}let A=(0,n.M)(s,"default"),D=(0,n.M)(s,"config"),R=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:s})},91766:e=>{e.exports=async function(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},44767:(e,r,t)=>{let s=t(48225),i=t(51348),a=t(47670),n=t(44900);e.exports=async function({query:e,user:r,useLocal:t}){try{let s=t?n:i,{invite:o,database_access:l,priviledge:u,email:d}=e,_=[o,d],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,d]);if(e?.[0])console.log("User already added");else{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:u,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,d]);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{e.exports=function(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=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},59474:(e,r,t)=>{let s=t(29021),i=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:a,alias:n}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(n?.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}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,n&&(s["replyTo "]=l),s.to=e,s.subject=r,s.text=t,s.html=u,o=await i.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({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"],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 i=`🚀 SERVER ERROR =========================== +`,"utf8",e=>{e&&console.log("Loging log write error")}),L.writeFileSync(`${t}/${c}`,JSON.stringify(g)),a?.invite&&d()({query:a,user:{...g,phone:_[0].phone}}),await f()(),p()({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:_[0].id,csrf_k:c,stripe_id:_[0].stripe_id||""},userPayload:g})}catch(e){console.log("Login Error =>",e.message),m()({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:s}})}}else r.json({msg:"Oops ..."})}let D=(0,n.M)(s,"default"),b=(0,n.M)(s,"config"),R=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:s})},91766:e=>{e.exports=async function(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},44767:(e,r,t)=>{let s=t(48225),i=t(51348),a=t(47670),n=t(44900);e.exports=async function({query:e,user:r,useLocal:t}){try{let s=t?n:i,{invite:o,database_access:l,priviledge:u,email:d}=e,_=[o,d],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,d]);if(e?.[0])console.log("User already added");else{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:u,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,d]);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{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),{keyCookieName:a,csrfCookieName:n+=s}}},59474:(e,r,t)=>{let s=t(29021),i=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:a,alias:n}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(n?.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}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,n&&(s["replyTo "]=l),s.to=e,s.subject=r,s.text=t,s.html=u,o=await i.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({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"],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 i=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/api/logoutUser.js b/dsql-app/.local_dist/server/pages/api/logoutUser.js index ed3a0a9..df68f1c 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")},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")},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}}})},22380:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),a=t(96762);t(6420);var i=t(31341),u=t.n(i);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Logout Error"});{let{keyCookieName:e,csrfCookieName:t}=u()();r.setHeader("Set-Cookie",[`${e}=null;max-age=0`,`${t}=null;max-age=0`]),r.json({msg:"Logged Out"})}}t(29021);let l=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/logoutUser",pathname:"/api/logoutUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:u,csrfCookieName:c}=a();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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=n("aes-192-cbc",s(a,i,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22380);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")},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")},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}}})},22380:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762);t(6420);var a=t(31341),u=t.n(a);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Logout Error"});{let{keyCookieName:e,csrfCookieName:t}=u()();r.setHeader("Set-Cookie",[`${e}=null;max-age=0`,`${t}=null;max-age=0`]),r.json({msg:"Logged Out"})}}t(29021);let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/logoutUser",pathname:"/api/logoutUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:u,csrfCookieName:c}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=n({encryptedString:e.cookies[u]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,u=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 c=n("aes-192-cbc",s(i,a,u),o.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22380);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 e344185..63b99bb 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")},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")},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}}})},10304:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>m});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),c=t.n(o),u=t(6420),l=t.n(u),d=t(33873),_=t.n(d);let p=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await l()(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-.*/),a=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 o=_().join(n,"images"),u=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${t.id}`,l=`/images/user-images/user-${t.id}`,d=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`:o)+i,m=e?`${o}/user-images/user-${t.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`;if(!p.existsSync(m))try{p.mkdirSync(m,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}a&&a.split("/").reduce((e,r)=>{let t=e?.match(/./)?`${e}/${r}`:m;return p.existsSync(t)||p.mkdirSync(t,{recursive:!0}),t},"");let S=d?.match(/[^\/]+$/)?.[0];if(!S)throw Error("No File Name Detected!");let f=S.split(".")[0],E=S.split(".")[1],v=e?`${u}${a?a+"/":"/"}${S}`:`@/media${a?a+"/":"/"}${S}`,h=e?`${l}${a?a+"/":"/"}${S}`:`@/media${a?a+"/":"/"}${S}`,$=m+a+"/"+S;p.copyFileSync(d,$),p.unlinkSync(d);let P=f+"_thumbnail."+E,g=d.replace(S,P),D=e?`${u}${a?a+"/":"/"}${P}`:`@/media${a?a+"/":"/"}${P}`,y=e?`${l}${a?a+"/":"/"}${P}`:`@/media${a?a+"/":"/"}${P}`;try{p.copyFileSync(g,m+a+"/"+P),p.unlinkSync(g)}catch(e){}await c()("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,v,D,h,y,s.id]),r.json({success:!0,msg:"Success!"})}catch(e){console.log(e.message),r.json({success:!1,msg:"Error!",error:e})}}let S=(0,n.M)(s,"default"),f=(0,n.M)(s,"config"),E=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),i=t(72835),a=t(29021),n=t(31341);async function o(e,r,t,o){let{keyCookieName:c,csrfCookieName:u}=n();if(!e.cookies?.[c]?.match(/./))return null;let l=i({encryptedString:e.cookies[c]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:i,csrfCookieName:a+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:i}=t(55511),{Buffer:a}=t(79428);e.exports=({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,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(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",s(n,o,c),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),i=t(21580),a=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:i()}});async function n(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10304);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")},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")},33873:e=>{e.exports=require("path")},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}}})},10304:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>m,routeModule:()=>E});var t={};s.r(t),s.d(t,{default:()=>S});var i=s(89947),n=s(2706),a=s(96762),o=s(51348),c=s.n(o),u=s(6420),l=s.n(u),d=s(33873),_=s.n(d);let p=s(29021);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let s=await l()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=e.body;if(t.media_url?.match(/\.\./)||t.folder?.match(/\.\./)||t.id?.toString()?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});try{let e=t?.private==1,i=e?t?.media_path?.replace(/\@\/media/i,"")||t?.media_url.replace(/\@\/media/i,""):t?.media_path?.match(/\/user-images\/user-.*/)||t?.media_url?.match(/\/user-images\/user-.*/),n=t.folder?`/${t.folder}`:"",a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=_().join(a,"images"),u=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${s.id}`,l=`/images/user-images/user-${s.id}`,d=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/media`:o)+i,S=e?`${o}/user-images/user-${s.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/media`;if(!p.existsSync(S))try{p.mkdirSync(S,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}n&&n.split("/").reduce((e,r)=>{let s=e?.match(/./)?`${e}/${r}`:S;return p.existsSync(s)||p.mkdirSync(s,{recursive:!0}),s},"");let m=d?.match(/[^\/]+$/)?.[0];if(!m)throw Error("No File Name Detected!");let f=m.split(".")[0],E=m.split(".")[1],v=e?`${u}${n?n+"/":"/"}${m}`:`@/media${n?n+"/":"/"}${m}`,h=e?`${l}${n?n+"/":"/"}${m}`:`@/media${n?n+"/":"/"}${m}`,$=S+n+"/"+m;p.copyFileSync(d,$),p.unlinkSync(d);let P=f+"_thumbnail."+E,g=d.replace(m,P),D=e?`${u}${n?n+"/":"/"}${P}`:`@/media${n?n+"/":"/"}${P}`,A=e?`${l}${n?n+"/":"/"}${P}`:`@/media${n?n+"/":"/"}${P}`;try{p.copyFileSync(g,S+n+"/"+P),p.unlinkSync(g)}catch(e){}await c()("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,v,D,h,A,t.id]),r.json({success:!0,msg:"Success!"})}catch(e){console.log(e.message),r.json({success:!1,msg:"Error!",error:e})}}let m=(0,a.M)(t,"default"),f=(0,a.M)(t,"config"),E=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),i=s(72835),n=s(29021),a=s(31341);async function o(e,r,s,o){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=i({encryptedString:e.cookies[c]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),{keyCookieName:n,csrfCookieName:a+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:i}=s(55511),{Buffer:n}=s(79428);e.exports=({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,c=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=i("aes-192-cbc",t(a,o,c),n.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),i=s(21580),n=t({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:i()}});async function a(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=10304);module.exports=s})(); \ 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 837c4ef..cf90e05 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")},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")},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}}})},97243:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>p,routeModule:()=>d});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),a=t(96762),i=t(6420),c=t.n(i);let u=t(29021);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await c()(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);u.createReadStream(o).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}let p=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),d=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let p=JSON.parse(l);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=97243);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")},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")},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}}})},97243:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>_,routeModule:()=>d});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),i=t(96762),a=t(6420),c=t.n(a);let u=t(29021);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await c()(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);u.createReadStream(o).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}let _=(0,i.M)(s,"default"),p=(0,i.M)(s,"config"),d=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=97243);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 222db73..cc54c08 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")},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")},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}}})},97447:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(51348),u=t.n(l),_=t(6420),p=t.n(_),d=t(33873),f=t.n(d);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await p()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:t,payload:s}=e.body;try{console.log("Deleting media =>",s.id);let e=s.media_url,t=process.env.DSQL_STATIC_SERVER_DIR,n=process.env.DSQL_STATIC_HOST;if(!t){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let o=e.replace(n,""),i=f().join(t,o),a=c().existsSync(i);if(console.log("relativePath",o),console.log("STATIC_ROOT",t),console.log("STATIC_HOST",n),console.log("filePath",i),console.log("fileExist",a),a){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 u()(`DELETE FROM user_media WHERE id='${s.id}'`),r.json({success:!0})}let E=(0,i.M)(s,"default"),P=(0,i.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=i();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=97447);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")},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")},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}}})},97447:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),i=t(96762),c=t(29021),a=t.n(c),l=t(51348),u=t.n(l),_=t(6420),p=t.n(_),d=t(33873),f=t.n(d);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await p()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:t,payload:s}=e.body;try{console.log("Deleting media =>",s.id);let e=s.media_url,t=process.env.DSQL_STATIC_SERVER_DIR,n=process.env.DSQL_STATIC_HOST;if(!t){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let o=e.replace(n,""),i=f().join(t,o),c=a().existsSync(i);if(console.log("relativePath",o),console.log("STATIC_ROOT",t),console.log("STATIC_HOST",n),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 u()(`DELETE FROM user_media WHERE id='${s.id}'`),r.json({success:!0})}let E=(0,i.M)(s,"default"),P=(0,i.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function c(e,r,t,c){let{keyCookieName:a,csrfCookieName:l}=i();if(!e.cookies?.[a]?.match(/./))return null;let u=n({encryptedString:e.cookies[a]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(i,c,a),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=97447);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 dee4561..36fa844 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,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},82453:(e,r,t)=>{t.r(r),t.d(r,{config:()=>x,default:()=>$,routeModule:()=>R});var i={};t.r(i),t.d(i,{config:()=>E,default:()=>v});var s=t(89947),a=t(2706),n=t(96762),l=t(33873),o=t.n(l),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c),p=t(48227),f=t.n(p),g=t(48225),_=t.n(g),S=t(77619),y=t.n(S);let h=t(29021),E={api:{bodyParser:{sizeLimit:"50mb"}}};async function v(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=y()({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:c,isPrivate:p}=e.body,g=process.env.DSQL_STATIC_SERVER_DIR;if(!g)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(c){let e=o().join(g,`images/user-images/user-${s}/${c?.toString().replace(/\.\./g,"")}`);h.existsSync(e)||h.mkdirSync(e,{recursive:!0})}let _=f()({folder:c,isPrivate:p,user:i});if(!_)throw Error("Couldn't Grab Image URLs");let{fileRootPath:S,urlRootPath:E}=_,v=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",$=E+l+v;h.writeFileSync(S+l+v,n,"base64"),await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:$}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:s,media_name:l,media_url:$,media_thumbnail_url:$,folder:c||"",media_type:"file",private:p?"1":null}}),r.json({success:!0,payload:{urlPath:$}})}catch(t){console.log("File write error:",t),_()({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 $=(0,n.M)(i,"default"),x=(0,n.M)(i,"config"),R=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})},48227:(e,r,t)=>{let i=t(29021),s=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:a,pathOnly:n}){"production".match(/production/);let l=r?.id||r?.user_id,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let u=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${l}/${t?t+"/":""}`:`/images/user-images/user-${l}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/media/${t?t+"/":""}`:s.join(o,u);return i.existsSync(d)||n||i.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),s=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)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 l=s({encryptedString:e}),o=JSON.parse(l||""),u=i.existsSync(`${n}/${o.sign}`);if(String(o.user_id)!==String(a)||!u)return null;if(!o.target_database)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}`),null}}},64122:(e,r,t)=>{let i=t(51348),s=t(21339),a=t(44900);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let d=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?a:d?i:s,m=`DELETE FROM ${n} WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,database:t,queryValues:[o]})}catch(e){return null}}e.exports=n},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,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 s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},82453:(e,r,t)=>{t.r(r),t.d(r,{config:()=>x,default:()=>$,routeModule:()=>R});var i={};t.r(i),t.d(i,{config:()=>E,default:()=>v});var s=t(89947),a=t(2706),n=t(96762),l=t(33873),o=t.n(l),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c),p=t(48227),f=t.n(p),g=t(48225),_=t.n(g),S=t(77619),y=t.n(S);let h=t(29021),E={api:{bodyParser:{sizeLimit:"50mb"}}};async function v(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=y()({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:c,isPrivate:p}=e.body,g=process.env.DSQL_STATIC_SERVER_DIR;if(!g)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(c){let e=o().join(g,`images/user-images/user-${s}/${c?.toString().replace(/\.\./g,"")}`);h.existsSync(e)||h.mkdirSync(e,{recursive:!0})}let _=f()({folder:c,isPrivate:p,user:i});if(!_)throw Error("Couldn't Grab Image URLs");let{fileRootPath:S,urlRootPath:E}=_,v=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",$=E+l+v;h.writeFileSync(S+l+v,n,"base64"),await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:$}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:s,media_name:l,media_url:$,media_thumbnail_url:$,folder:c||"",media_type:"file",private:p?"1":null}}),r.json({success:!0,payload:{urlPath:$}})}catch(t){console.log("File write error:",t),_()({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 $=(0,n.M)(i,"default"),x=(0,n.M)(i,"config"),R=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})},48227:(e,r,t)=>{let i=t(29021),s=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:a,pathOnly:n}){"production".match(/production/);let l=r?.id||r?.user_id,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let u=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${l}/${t?t+"/":""}`:`/images/user-images/user-${l}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/media/${t?t+"/":""}`:s.join(o,u);return i.existsSync(d)||n||i.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),s=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)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 l=s({encryptedString:e}),o=JSON.parse(l||""),u=i.existsSync(`${n}/${o.sign}`);if(String(o.user_id)!==String(a)||!u)return null;if(!o.target_database)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}`),null}}},64122:(e,r,t)=>{let i=t(51348),s=t(21339),a=t(44900);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:d?i:s,m=`DELETE FROM ${n} WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,database:t,queryValues:[o]})}catch(e){return null}}e.exports=n},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,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 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/query/[user_id]/add-image.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js index e3ef8c9..22fa819 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={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")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},19582:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>$,routeModule:()=>R});var i={};t.r(i),t.d(i,{config:()=>E,default:()=>v});var a=t(89947),s=t(2706),n=t(96762),o=t(33873),l=t.n(o),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c),p=t(10701),g=t.n(p),f=t(48225),_=t.n(f),h=t(77619),S=t.n(h);let y=t(29021),E={api:{bodyParser:{sizeLimit:"50mb"}}};async function v(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 i=S()({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{imageData:n,imageName:o,mimeType:u,thumbnailSize:c,folder:p,isPrivate:f}=e.body,_=process.env.DSQL_STATIC_SERVER_DIR;if(!_)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(p){let e=l().join(_,`images/user-images/user-${a}/${p}`);y.existsSync(e)||y.mkdirSync(e,{recursive:!0})}let h=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",E=await g()({imageName:o,imageSourceBase64:n,user:{id:a},mimeType:h,thumbnailSize:c,folder:p,isPrivate:f});if(!E)throw Error("Write Image Failed in add-media API route");let{urlPath:v,urlThumbnailPath:$}=E;await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:v}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:a,media_name:o,media_url:v,media_thumbnail_url:$,folder:p||""}}),r.json({success:!0,payload:{urlPath:v,urlThumbnailPath:$}})}catch(t){_()({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)(i,"default"),b=(0,n.M)(i,"config"),R=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:i})},10701:(e,r,t)=>{let i=t(9288),a=t(48225),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:n,thumbnailSize:o,folder:l,isPrivate:u}){try{let a=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i(a),m=i(a),p=s({isPrivate:u,user:t,folder:l});if(!p)return null;let{fileRootPath:g,urlRootPath:f,relativePath:_}=p,{width:h,height:S,format:y}=await c.metadata(),E=n||y;h&&S&&h>1800&&c.resize(1800,Math.round(1800/h*S),{fit:"cover"}),c.toFormat(E,{quality:80}),await c.metadata();let v=`${r}.${E}`;if(await c.toFile(g+v),h&&S&&h>d){let e=d/h;m.resize(d,Math.round(S*e),{fit:"cover"})}else h&&S&&m.resize(150,Math.round(150/h*S),{fit:"cover"});m.toFormat(E,{quality:80});let $=`${r}_thumbnail.${E}`;return await m.toFile(g+$),{urlPath:f+v,urlThumbnailPath:f+$,urlRelativePath:_+v,urlThumbnailRelativePath:_+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),a({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let i=t(29021),a=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:n}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:a.join(l,u);return i.existsSync(d)||n||i.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),a=t(72835);e.exports=({key:e,database:r,table:t,user_id:s})=>{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 o=a({encryptedString:e}),l=JSON.parse(o||""),u=i.existsSync(`${n}/${l.sign}`);if(String(l.user_id)!==String(s)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let d=l.target_database?.split(",").includes(String(r));if(d&&!l.target_table)return l;if(d&&!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}`),null}}},64122:(e,r,t)=>{let i=t(51348),a=t(21339),s=t(44900);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let d=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s:d?i:a,m=`DELETE FROM ${n} WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,database:t,queryValues:[l]})}catch(e){return null}}e.exports=n},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5319,e.ids=[5319],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")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},19582:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>$,routeModule:()=>R});var i={};t.r(i),t.d(i,{config:()=>E,default:()=>v});var a=t(89947),s=t(2706),n=t(96762),o=t(33873),l=t.n(o),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c),p=t(10701),g=t.n(p),f=t(48225),_=t.n(f),h=t(77619),S=t.n(h);let y=t(29021),E={api:{bodyParser:{sizeLimit:"50mb"}}};async function v(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 i=S()({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{imageData:n,imageName:o,mimeType:u,thumbnailSize:c,folder:p,isPrivate:f}=e.body,_=process.env.DSQL_STATIC_SERVER_DIR;if(!_)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(p){let e=l().join(_,`images/user-images/user-${a}/${p}`);y.existsSync(e)||y.mkdirSync(e,{recursive:!0})}let h=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",E=await g()({imageName:o,imageSourceBase64:n,user:{id:a},mimeType:h,thumbnailSize:c,folder:p,isPrivate:f});if(!E)throw Error("Write Image Failed in add-media API route");let{urlPath:v,urlThumbnailPath:$}=E;await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:v}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:a,media_name:o,media_url:v,media_thumbnail_url:$,folder:p||""}}),r.json({success:!0,payload:{urlPath:v,urlThumbnailPath:$}})}catch(t){_()({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)(i,"default"),b=(0,n.M)(i,"config"),R=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:i})},10701:(e,r,t)=>{let i=t(9288),a=t(48225),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:n,thumbnailSize:o,folder:l,isPrivate:u}){try{let a=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i(a),m=i(a),p=s({isPrivate:u,user:t,folder:l});if(!p)return null;let{fileRootPath:g,urlRootPath:f,relativePath:_}=p,{width:h,height:S,format:y}=await c.metadata(),E=n||y;h&&S&&h>1800&&c.resize(1800,Math.round(1800/h*S),{fit:"cover"}),c.toFormat(E,{quality:80}),await c.metadata();let v=`${r}.${E}`;if(await c.toFile(g+v),h&&S&&h>d){let e=d/h;m.resize(d,Math.round(S*e),{fit:"cover"})}else h&&S&&m.resize(150,Math.round(150/h*S),{fit:"cover"});m.toFormat(E,{quality:80});let $=`${r}_thumbnail.${E}`;return await m.toFile(g+$),{urlPath:f+v,urlThumbnailPath:f+$,urlRelativePath:_+v,urlThumbnailRelativePath:_+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),a({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let i=t(29021),a=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:n}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:a.join(l,u);return i.existsSync(d)||n||i.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77619:(e,r,t)=>{let i=t(29021),a=t(72835);e.exports=({key:e,database:r,table:t,user_id:s})=>{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 o=a({encryptedString:e}),l=JSON.parse(o||""),u=i.existsSync(`${n}/${l.sign}`);if(String(l.user_id)!==String(s)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let d=l.target_database?.split(",").includes(String(r));if(d&&!l.target_table)return l;if(d&&!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}`),null}}},64122:(e,r,t)=>{let i=t(51348),a=t(21339),s=t(44900);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:d?i:a,m=`DELETE FROM ${n} WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,database:t,queryValues:[l]})}catch(e){return null}}e.exports=n},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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 556a0a4..9917e9a 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")},81630:e=>{e.exports=require("http")},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}}})},50145:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>D,routeModule:()=>y});var s={};t.r(s),t.d(s,{config:()=>g,default:()=>m});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),c=t.n(i),l=t(64122),u=t.n(l),p=t(48225),d=t.n(p),S=t(77619),_=t.n(S);let f=t(29021),g={api:{bodyParser:{sizeLimit:"50mb"}}};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 s=_()({key:t,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");let{user_id:n,full_access:o}=s;if(!o)return r.json({success:!1,msg:"Unauthorized"});let{url:a}=e.body,i=await c()("SELECT * FROM user_media WHERE media_url = ?",[a]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:l,folder:p,media_url:d,media_thumbnail_url:S,media_type:g}=i[0],m=process.env.DSQL_STATIC_SERVER_DIR;if(!m)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let D=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",m),E=D(d),y=D(S);if(!E?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{f.unlinkSync(E),f.unlinkSync(y),await u()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:l}),r.json({success:!0,payload:{url:a}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:a},error:e.message})}}catch(t){console.log("File write error:",t),d()({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 D=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:s})},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:o})=>{if(!e||!o)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 i=n({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(o)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!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}`),null}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:c,useLocal:l}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),p=l?o:u?s:n,d=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await p(d,[c]):await p({paradigm:r,queryString:d,database:t,queryValues:[c]})}catch(e){return null}}e.exports=a},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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")},81630:e=>{e.exports=require("http")},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}}})},50145:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>D,routeModule:()=>y});var s={};t.r(s),t.d(s,{config:()=>g,default:()=>m});var n=t(89947),o=t(2706),a=t(96762),i=t(51348),c=t.n(i),l=t(64122),u=t.n(l),p=t(48225),d=t.n(p),S=t(77619),_=t.n(S);let f=t(29021),g={api:{bodyParser:{sizeLimit:"50mb"}}};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 s=_()({key:t,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");let{user_id:n,full_access:o}=s;if(!o)return r.json({success:!1,msg:"Unauthorized"});let{url:a}=e.body,i=await c()("SELECT * FROM user_media WHERE media_url = ?",[a]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:l,folder:p,media_url:d,media_thumbnail_url:S,media_type:g}=i[0],m=process.env.DSQL_STATIC_SERVER_DIR;if(!m)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let D=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",m),E=D(d),y=D(S);if(!E?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{f.unlinkSync(E),f.unlinkSync(y),await u()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:l}),r.json({success:!0,payload:{url:a}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:a},error:e.message})}}catch(t){console.log("File write error:",t),d()({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 D=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:s})},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:o})=>{if(!e||!o)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 i=n({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(o)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!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}`),null}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),o=t(44900);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:c,useLocal:l}){try{let u=!!l||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),p=l?o:u?s:n,d=`DELETE FROM ${a} WHERE \`${i}\`=?`;return u?await p(d,[c]):await p({paradigm:r,queryString:d,database:t,queryValues:[c]})}catch(e){return null}}e.exports=a},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,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 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/queryEntriesSearchTerm.js b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js index 7bc509d..5553d57 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")},81630:e=>{e.exports=require("http")},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}}})},57164:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),c=t(48225),i=t.n(c),l=t(6420),u=t.n(l),p=t(57638),d=t.n(p);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.table,n=e.query.db,a=e.query.field,o=String(e.query.term),c=e.query.operator;try{let e=`SELECT * FROM \`${s}\` WHERE LOWER(\`${a}\`) ${c?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,t=[c?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],i=await d()({database:n?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e,queryValuesArray:t}),l=await d()({database:n?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:t});r.json({success:!0,result:i,count:l?.[0]?.count})}catch(e){i()({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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")},81630:e=>{e.exports=require("http")},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}}})},57164:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),c=t(48225),i=t.n(c),l=t(6420),u=t.n(l),p=t(57638),_=t.n(p);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.table,n=e.query.db,a=e.query.field,o=String(e.query.term),c=e.query.operator;try{let e=`SELECT * FROM \`${s}\` WHERE LOWER(\`${a}\`) ${c?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,t=[c?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],i=await _()({database:n?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e,queryValuesArray:t}),l=await _()({database:n?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:t});r.json({success:!0,result:i,count:l?.[0]?.count})}catch(e){i()({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let p=!!t?.match(/^datasquirel$/),d=l?c:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57164);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let p=!!l||!!t?.match(/^datasquirel$/),_=l?c:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(p).catch(_):o.query(t).then(p).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57164);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 b5ffb1a..cb57fee 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")},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")},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}}})},96499:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),l=t.n(a),c=t(56129),u=t.n(c);async function _(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let s=await u()({userId:t.id,res:r,csrf:t.csrf_k}),n={status:!!s,csrf:s?.csrf_k,user:s};r.json(n)}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:s})},56129:(e,r,t)=>{let s=t(29021),n=t(48225),{ServerResponse:i}=t(81630),o=t(51348),a=t(20503),l=t(31341);e.exports=async function({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 i=await o("SELECT * FROM users WHERE id=?",[e]);s.unlinkSync(`${n}/${t}`);let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),u={id:i[0].id,stripe_id:i[0].stripe_id||"",first_name:i[0].first_name,last_name:i[0].last_name,email:i[0].email,social_id:i[0].social_id,image:i[0].image,image_thumbnail:i[0].image_thumbnail,verification_status:i[0].verification_status,social_login:i[0].social_login,social_platform:i[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()},_=a({data:JSON.stringify(u)});s.writeFileSync(`${n}/${c}`,JSON.stringify(u));let{keyCookieName:d,csrfCookieName:p}=l();return r.setHeader("Set-Cookie",[`${d}=${_};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${p}=${c};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),u}catch(r){return n({component:"reAuthUser",message:r.message,user:{id:e}}),null}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${d}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}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")},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")},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}}})},96499:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>p,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),l=t.n(a),c=t(56129),u=t.n(c);async function _(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let s=await u()({userId:t.id,res:r,csrf:t.csrf_k}),n={status:!!s,csrf:s?.csrf_k,user:s};r.json(n)}let p=(0,o.M)(s,"default"),d=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:s})},56129:(e,r,t)=>{let s=t(29021),n=t(48225),{ServerResponse:i}=t(81630),o=t(51348),a=t(20503),l=t(31341);e.exports=async function({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 i=await o("SELECT * FROM users WHERE id=?",[e]);s.unlinkSync(`${n}/${t}`);let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),u={id:i[0].id,stripe_id:i[0].stripe_id||"",first_name:i[0].first_name,last_name:i[0].last_name,email:i[0].email,social_id:i[0].social_id,image:i[0].image,image_thumbnail:i[0].image_thumbnail,verification_status:i[0].verification_status,social_login:i[0].social_login,social_platform:i[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()},_=a({data:JSON.stringify(u)});s.writeFileSync(`${n}/${c}`,JSON.stringify(u));let{keyCookieName:p,csrfCookieName:d}=l();return r.setHeader("Set-Cookie",[`${p}=${_};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${d}=${c};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),u}catch(r){return n({component:"reAuthUser",message:r.message,user:{id:e}}),null}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}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/refreshEntry.js b/dsql-app/.local_dist/server/pages/api/refreshEntry.js index 8b4498a..7fa5a67 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")},81630:e=>{e.exports=require("http")},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}}})},57237:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d),_=t(72835),S=t.n(_);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:s,db:n,id:a}=e.query,o=e.query.schema;try{let e=`SELECT * FROM \`${s}\` WHERE id=?`,t=[a?.toString()||""],c=await i()({database:n?.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){u()({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=c},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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")},81630:e=>{e.exports=require("http")},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}}})},57237:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>D});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c),l=t(48225),u=t.n(l),d=t(6420),p=t.n(d),_=t(72835),S=t.n(_);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:s,db:n,id:a}=e.body,o=e.body.schema;try{let e=`SELECT * FROM \`${s}\` WHERE id=?`,t=[a?.toString()||""],c=await i()({database:n?.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){u()({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let d=!!t?.match(/^datasquirel$/),p=l?c:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57237);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),p=l?c:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57237);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/renameMedia.js b/dsql-app/.local_dist/server/pages/api/renameMedia.js index f80171e..4b0f5c8 100644 --- a/dsql-app/.local_dist/server/pages/api/renameMedia.js +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js @@ -1,4 +1,4 @@ -"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")},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")},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}}})},17499:(e,r,t)=>{t.r(r),t.d(r,{config:()=>$,default:()=>g,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>h});var n=t(89947),a=t(2706),i=t(96762),o=t(6420),l=t.n(o),c=t(48225),u=t.n(c),d=t(51348),_=t.n(d);t(33873);var p=t(48227),m=t.n(p),S=t(27825),f=t.n(S);let E=t(29021);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.mediaObject,n=e.body.newName,a=e.body.newThumbnailName,i=e.body.replace;try{"production".match(/production/);let e=s.media_url.match(/\..{3,4}$/)[0],o=s?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=m()({isPrivate:o,user:t,folder:s.folder?s.folder+"/":"",video:!!s.media_type?.match(/video/i)});if(!l)throw Error("Couldn't grab paths!");let{fileRootPath:c,urlRootPath:u,relativePath:d}=l,p=`${c}${s.media_name}${e}`,S=`${c}${n}${e}`,h=`${c}${s.media_name}_thumbnail${e}`,g=`${c}${n}_thumbnail${e}`,$=new RegExp(f().escapeRegExp(`${s.media_name}`)),y=s.media_url.replace($,n),v=s.media_url.replace($,n+"_thumbnail"),P=s.media_path?s.media_path.replace($,n):`${d}${n}`,R=s.media_thumbnail_path?s.media_thumbnail_path.replace($,n):`${d}${a}`;if(E.existsSync(S)&&!i)return r.json({success:!1,msg:"File already exists"});E.renameSync(p,S);try{E.renameSync(h,g)}catch(e){}await _()("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[n,y,v,P,R,s.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),u()({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let g=(0,i.M)(s,"default"),$=(0,i.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:s})},48227:(e,r,t)=>{let s=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:a,pathOnly:i}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let c=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:n.join(l,c);return s.existsSync(u)||i||s.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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")},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")},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}}})},17499:(e,r,t)=>{t.r(r),t.d(r,{config:()=>$,default:()=>g,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>h});var n=t(89947),a=t(2706),i=t(96762),o=t(6420),l=t.n(o),c=t(48225),u=t.n(c),d=t(51348),_=t.n(d);t(33873);var p=t(48227),m=t.n(p),S=t(27825),f=t.n(S);let E=t(29021);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.mediaObject,n=e.body.newName,a=e.body.newThumbnailName,i=e.body.replace;try{"production".match(/production/);let e=s.media_url.match(/\..{3,4}$/)[0],o=s?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=m()({isPrivate:o,user:t,folder:s.folder?s.folder+"/":"",video:!!s.media_type?.match(/video/i)});if(!l)throw Error("Couldn't grab paths!");let{fileRootPath:c,urlRootPath:u,relativePath:d}=l,p=`${c}${s.media_name}${e}`,S=`${c}${n}${e}`,h=`${c}${s.media_name}_thumbnail${e}`,g=`${c}${n}_thumbnail${e}`,$=new RegExp(f().escapeRegExp(`${s.media_name}`)),v=s.media_url.replace($,n),y=s.media_url.replace($,n+"_thumbnail"),P=s.media_path?s.media_path.replace($,n):`${d}${n}`,D=s.media_thumbnail_path?s.media_thumbnail_path.replace($,n):`${d}${a}`;if(E.existsSync(S)&&!i)return r.json({success:!1,msg:"File already exists"});E.renameSync(p,S);try{E.renameSync(h,g)}catch(e){}await _()("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[n,v,y,P,D,s.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),u()({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let g=(0,i.M)(s,"default"),$=(0,i.M)(s,"config"),v=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:s})},48227:(e,r,t)=>{let s=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:a,pathOnly:i}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let c=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:n.join(l,c);return s.existsSync(u)||i||s.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),i=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:a,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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/resetDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js index 7c37d85..63b7dd1 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")},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")},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}}})},55961:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),a=t(96762),i=t(6420),c=t.n(i);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await c()(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 l=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:u}=a();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=55961);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")},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")},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}}})},55961:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),i=t(96762),a=t(6420),c=t.n(a);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await c()(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 l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),i=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:u}=i();if(!e.cookies?.[c]?.match(/./))return null;let l=n({encryptedString:e.cookies[c]});if(!l)return null;let _=JSON.parse(l);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:i+=s}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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 u=n("aes-192-cbc",s(i,a,c),o.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=55961);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 799859d..15685bc 100644 --- a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js @@ -1,6 +1,6 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},83469:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),c=t(6420),i=t.n(c),l=t(48225),u=t.n(l),_=t(57638),p=t.n(_);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await i()(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 p()({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){u()({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,c=(()=>{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 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},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}}})},83469:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>S,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>d});var n=s(89947),a=s(2706),o=s(96762),c=s(6420),i=s.n(c),l=s(48225),u=s.n(l),_=s(57638),p=s.n(_);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await i()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{database:t,query:n,tables:a}=e.body;try{let e=await p()({database:`datasquirel_user_${s.id}_${t}`,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){u()({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:s}),r.json({success:!1})}}s(29021);let S=(0,o.M)(t,"default"),f=(0,o.M)(t,"config"),D=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),n=s(72835),a=s(29021),o=s(31341);async function c(e,r,s,c){let{keyCookieName:i,csrfCookieName:l}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=t}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,s)=>{let t=s(72835),n=s(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let s=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,s)=>{let t=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:r,component:s,noMail:n,req:a}){let o=new Date,c=(()=>{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 n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${s}`;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+=` @@ -8,9 +8,9 @@ URL: ${a.url}`),a?.body&&(n+=` Request Body: ${JSON.stringify(a.body,null,4)}`),c&&(n+=` IP: ${c}`),n+=` 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",n),s.appendFileSync("./.tmp/error.log",` +========================================`,t.existsSync("./.tmp/error.log")||t.writeFileSync("./.tmp/error.log","","utf-8");let i=t.readFileSync("./.tmp/error.log","utf-8");t.writeFileSync("./.tmp/error.log",n),t.appendFileSync("./.tmp/error.log",` -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),c=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l}){let u;let _=!!t?.match(/^datasquirel$/),p=l?c:_?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?_?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):_?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(_).catch(p):o.query(t).then(_).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83469);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,s)=>{s(29021);let t=s(6061),n=s(48225),a=s(51348),o=s(21339),c=s(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:s,tableSchema:i,useLocal:l}){let u;let _=!!l||!!s?.match(/^datasquirel$/),p=l?c:_?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?_?await p(e,r):await p({paradigm:"Full Access",database:s,queryString:e,queryValues:r}):_?await p(e):await p({paradigm:"Full Access",database:s,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await t({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({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,c=s||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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",t(o,c,i),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),a=t({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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,s)=>{let t=s(29021);s(33873);let n=s(9973),a=s(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:s,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function _(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:s,queryValuesGenerated:c,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),c&&Array.isArray(c)&&c[0]?o.query(s,c).then(_).catch(p):o.query(s).then(_).catch(p)}catch(e){t.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,s)=>{let t=s(9973),n=s(21580);async function a(...e){let r=t({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:n()},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 s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=83469);module.exports=s})(); \ 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 fa68763..4be20df 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")},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")},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}}})},11074:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),c=t.n(a);let l=t(29021),u=t(59474),_=t(20503);async function p(e,r){if("GET"===e.method){let t=await c()(e,r);if(!t)return r.redirect(307,"/logout");let s=_({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),n=process.env.DSQL_HOST;if(!await u({to:t.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:l.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,n||"").replace(/{{token}}/,s||"")}))return r.json({success:!1});r.json({success:!0})}}let d=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},59474:(e,r,t)=>{let s=t(29021),n=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:i,alias:o}){let a;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(!s.existsSync("./email/index.html"))return;let l=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${c}>`,s.sender=c,o&&(s["replyTo "]=c),s.to=e,s.subject=r,s.text=t,s.html=l,a=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return a}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=11074);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")},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")},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}}})},11074:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),c=t.n(a);let l=t(29021),u=t(59474),_=t(20503);async function p(e,r){if("GET"===e.method){let t=await c()(e,r);if(!t)return r.redirect(307,"/logout");let s=_({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),n=process.env.DSQL_HOST;if(!await u({to:t.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:l.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,n||"").replace(/{{token}}/,s||"")}))return r.json({success:!1});r.json({success:!0})}}let d=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},59474:(e,r,t)=>{let s=t(29021),n=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:i,alias:o}){let a;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(!s.existsSync("./email/index.html"))return;let l=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${c}>`,s.sender=c,o&&(s["replyTo "]=c),s.to=e,s.subject=r,s.text=t,s.html=l,a=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return a}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({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,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(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(o,a,c),i.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=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:n()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=11074);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 333e3b1..c84f45c 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={27825:e=>{e.exports=require("lodash")},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")},81630:e=>{e.exports=require("http")},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}}})},36968:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),l=t.n(a),c=t(48225),u=t.n(c);t(27825);var d=t(51348),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{let e=await p()("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 i=`dsql_user_${t.id}`,o=n.host;await p()("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await p()(`DROP USER '${i}'@'${o}'`),r.json({success:!0})}catch(e){u()({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})}}t(29021);let f=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=a},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=536,e.ids=[536],e.modules={27825:e=>{e.exports=require("lodash")},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")},81630:e=>{e.exports=require("http")},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}}})},36968:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),o=t(96762),a=t(6420),l=t.n(a),c=t(48225),u=t.n(c);t(27825);var d=t(51348),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{let e=await p()("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 i=`dsql_user_${t.id}`,o=n.host;await p()("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await p()(`DROP USER '${i}'@'${o}'`),r.json({success:!0})}catch(e){u()({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})}}t(29021);let f=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),E=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),o=t(31341);async function a(e,r,t,a){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=a},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:i,csrfCookieName:o+=s}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}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/sync-table-data.js b/dsql-app/.local_dist/server/pages/api/sync-table-data.js index 7f586c0..7754350 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},41848:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>$,routeModule:()=>N});var a={};t.r(a),t.d(a,{default:()=>g});var s=t(89947),l=t(2706),o=t(96762),n=t(48225),i=t.n(n),d=t(6420),u=t.n(d),c=t(27825),p=t.n(c),m=t(51348),b=t.n(m),f=t(27444);t(81630),t(48225);let _=t(51348);async function E({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==i),c=n.find(e=>e.dbFullName==d),m=u?.tables.find(e=>e.tableName==l.table),_=c?.tables.find(e=>e.tableName==s.table);if(!m||!_)throw Error("Operation Failed! Tables Schemas not present.");if(!p().isEqual(_.fields,m.fields))throw Error("Tables incompatible");switch(a){case"Push":let g=await b()(`SELECT * FROM ${d}.${s.table}`),$=await (0,f.A)({dbName:l.db,paradigm:"import",payload:g,tableName:l.table,userId:o.rootUserId,payloadType:"object"});return await y({dbName:l.db,tableName:l.table,data:g,userId:o.rootUserId}),r.json({success:!0,payload:$});case"Pull":let h=await b()(`SELECT * FROM ${i}.${l.table}`),N=await (0,f.A)({dbName:s.db,paradigm:"import",payload:h,tableName:s.table,userId:o.rootUserId,payloadType:"object"});return await y({dbName:s.db,tableName:s.table,data:h,userId:o.rootUserId}),r.json({success:!0,payload:N})}r.json({success:!1})}catch(e){console.log(e.message),i()({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function y({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,l=t.map(e=>e.id),o=`DELETE FROM ${s}.${r}`;l?.[0]&&(o+=` WHERE id NOT IN (${l.join(",")})`),await b()(o)}let $=(0,o.M)(a,"default"),h=(0,o.M)(a,"config"),N=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},27444:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(47670),s=t.n(a);let l=t(48225),o=t(51348);async function n({paradigm:e,userId:r,dbName:t,tableName:a,payload:n,payloadType:i}){let d={};try{let l=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await o(`SELECT * FROM \`${l}\`.\`${a}\``);d.tableData=u;break;case"import":let c="base64"==i?Buffer.from(n,"base64").toString():n,p="object"===i?n:JSON.parse(c);for(let e=0;e{t(81630);let a=t(51348),s=t(72835),l=t(29021),o=t(31341);async function n(e,r,t,n){let{keyCookieName:i,csrfCookieName:d}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=s({encryptedString:e.cookies[i]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await 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"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),e?.database&&(l+=`${e.database}_`),{keyCookieName:s,csrfCookieName:l+=a}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let a=t(48225),s=t(29021),l=t(33873);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 a({component:"grabUserSchemaData",message:e.message}),null}}},48225:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:l}){let o=new Date,n=(()=>{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 s=`🚀 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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},41848:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>$,routeModule:()=>N});var a={};t.r(a),t.d(a,{default:()=>g});var s=t(89947),l=t(2706),o=t(96762),n=t(48225),i=t.n(n),d=t(6420),u=t.n(d),c=t(27825),p=t.n(c),m=t(51348),_=t.n(m),f=t(27444);t(81630),t(48225);let b=t(51348);async function E({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==i),c=n.find(e=>e.dbFullName==d),m=u?.tables.find(e=>e.tableName==l.table),b=c?.tables.find(e=>e.tableName==s.table);if(!m||!b)throw Error("Operation Failed! Tables Schemas not present.");if(!p().isEqual(b.fields,m.fields))throw Error("Tables incompatible");switch(a){case"Push":let g=await _()(`SELECT * FROM ${d}.${s.table}`),$=await (0,f.A)({dbName:l.db,paradigm:"import",payload:g,tableName:l.table,userId:o.rootUserId,payloadType:"object"});return await y({dbName:l.db,tableName:l.table,data:g,userId:o.rootUserId}),r.json({success:!0,payload:$});case"Pull":let h=await _()(`SELECT * FROM ${i}.${l.table}`),N=await (0,f.A)({dbName:s.db,paradigm:"import",payload:h,tableName:s.table,userId:o.rootUserId,payloadType:"object"});return await y({dbName:s.db,tableName:s.table,data:h,userId:o.rootUserId}),r.json({success:!0,payload:N})}r.json({success:!1})}catch(e){console.log(e.message),i()({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function y({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,l=t.map(e=>e.id),o=`DELETE FROM ${s}.${r}`;l?.[0]&&(o+=` WHERE id NOT IN (${l.join(",")})`),await _()(o)}let $=(0,o.M)(a,"default"),h=(0,o.M)(a,"config"),N=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},27444:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(47670),s=t.n(a);let l=t(48225),o=t(51348);async function n({paradigm:e,userId:r,dbName:t,tableName:a,payload:n,payloadType:i}){let d={};try{let l=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await o(`SELECT * FROM \`${l}\`.\`${a}\``);d.tableData=u;break;case"import":let c="base64"==i?Buffer.from(n,"base64").toString():n,p="object"===i?n:JSON.parse(c);for(let e=0;e{t(81630);let a=t(51348),s=t(72835),l=t(29021),o=t(31341);async function n(e,r,t,n){let{keyCookieName:i,csrfCookieName:d}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=s({encryptedString:e.cookies[i]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await 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"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),{keyCookieName:l,csrfCookieName:o+=a}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let a=t(48225),s=t(29021),l=t(33873);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 a({component:"grabUserSchemaData",message:e.message}),null}}},48225:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:l}){let o=new Date,n=(()=>{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 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/updateAdminUserAccess.js b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js index db1ea25..891f135 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={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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},98397:(e,r,s)=>{s.r(r),s.d(r,{config:()=>S,default:()=>E,routeModule:()=>m});var t={};s.r(t),s.d(t,{default:()=>f});var a=s(89947),i=s(2706),l=s(96762),n=s(51348),o=s.n(n),u=s(6420),d=s.n(u),c=s(47670),_=s.n(c);s(29021),s(33873);let{execSync:p}=s(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await d()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:t,database_access:a,user_priviledge:i,db_tables:l,inv_user_id:n}=e.body,u=await o()("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[a,i,s.id,t.email]),c=l.split("|");await o()(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${n}'`);for(let e=0;e{s(81630);let t=s(51348),a=s(72835),i=s(29021),l=s(31341);async function n(e,r,s,n){let{keyCookieName:o,csrfCookieName:u}=l();if(!e.cookies?.[o]?.match(/./))return null;let d=a({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:a,csrfCookieName:i+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=s||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",t(l,n,o),i.alloc(16,0));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 s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(98397));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=294,e.ids=[294],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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},98397:(e,r,s)=>{s.r(r),s.d(r,{config:()=>S,default:()=>E,routeModule:()=>v});var t={};s.r(t),s.d(t,{default:()=>f});var i=s(89947),a=s(2706),l=s(96762),n=s(51348),o=s.n(n),u=s(6420),d=s.n(u),c=s(47670),_=s.n(c);s(29021),s(33873);let{execSync:p}=s(79646);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await d()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:t,database_access:i,user_priviledge:a,db_tables:l,inv_user_id:n}=e.body,u=await o()("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[i,a,s.id,t.email]),c=l.split("|");await o()(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${n}'`);for(let e=0;e{s(81630);let t=s(51348),i=s(72835),a=s(29021),l=s(31341);async function n(e,r,s,n){let{keyCookieName:o,csrfCookieName:u}=l();if(!e.cookies?.[o]?.match(/./))return null;let d=i({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=n},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:a,csrfCookieName:l+=t}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:i}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=s||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=i("aes-192-cbc",t(l,n,o),a.alloc(16,0));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 s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(98397));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 6692cb1..f7e4168 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={60818:e=>{e.exports=require("dotenv")},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")},79646:e=>{e.exports=require("child_process")},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,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}}})},47095:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),o=t(2706),n=t(96762),i=t(39831),l=t.n(i),u=t(48225),d=t.n(u),c=t(6420),p=t.n(c),_=t(19261),f=t.n(_);let S=t(29021);t(33873);let{execSync:b}=t(79646);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(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 l()({request:e,user:t,databaseSlug:o,query:e.query}),u=i?.rootUserId?i.rootUserId:t.id,d=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${u}/main.json`,c=JSON.parse(S.readFileSync(d,"utf-8")),p=c.findIndex(e=>e.dbFullName===a),_=c[p].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);c[p].tables[_]=s,S.writeFileSync(`${d}`,JSON.stringify(c),"utf8"),await f()({userId:u,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),d()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let m=(0,n.M)(s,"default"),g=(0,n.M)(s,"config"),y=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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,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=s({encryptedString:e.cookies[u]});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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),o=t(29021),n=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let d=a({encryptedString:e.cookies[l]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:a,csrfCookieName:o+=s}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),o=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:a()}});async function n(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(47095));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={60818:e=>{e.exports=require("dotenv")},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")},79646:e=>{e.exports=require("child_process")},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,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}}})},47095:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),o=t(2706),n=t(96762),i=t(39831),l=t.n(i),u=t(48225),d=t.n(u),c=t(6420),p=t.n(c),_=t(19261),S=t.n(_);let f=t(29021);t(33873);let{execSync:b}=t(79646);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(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 l()({request:e,user:t,databaseSlug:o,query:e.query}),u=i?.rootUserId?i.rootUserId:t.id,d=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${u}/main.json`,c=JSON.parse(f.readFileSync(d,"utf-8")),p=c.findIndex(e=>e.dbFullName===a),_=c[p].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);c[p].tables[_]=s,f.writeFileSync(`${d}`,JSON.stringify(c),"utf8"),await S()({userId:u,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),d()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let m=(0,n.M)(s,"default"),g=(0,n.M)(s,"config"),v=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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,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=s({encryptedString:e.cookies[u]});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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),o=t(29021),n=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let d=a({encryptedString:e.cookies[l]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${p}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=i},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),{keyCookieName:o,csrfCookieName:n+=s}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),o=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:a()}});async function n(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(47095));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 102e4fa..876660e 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={60818:e=>{e.exports=require("dotenv")},27825:e=>{e.exports=require("lodash")},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")},79646:e=>{e.exports=require("child_process")},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,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}}})},23249:(e,r,t)=>{t.r(r),t.d(r,{config:()=>N,default:()=>P,routeModule:()=>y});var a={};t.r(a),t.d(a,{default:()=>I});var s=t(89947),o=t(2706),n=t(96762),l=t(51348),i=t.n(l),d=t(39831),u=t.n(d),c=t(48225),f=t.n(c),p=t(6420),_=t.n(p),b=t(2258),m=t(29021),S=t.n(m),E=t(27825),h=t.n(E),D=t(19261),g=t.n(D);t(29021),t(33873);let{execSync:v}=t(79646);async function I(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(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 u()({request:e,user:t,databaseSlug:s,query:e.query}),d=l?.rootUserId?l.rootUserId:t.id,c=`datasquirel_user_${d}_${s}`.replace(/[^a-z\_0-9]/g,"");if(l?.delegated){let e=await i()("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 f=(0,b.default)({userId:d});if(!f)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=h().cloneDeep(e),l=o.find(e=>e.dbFullName==t);if(!l)throw Error("Old Database schema not found!");let i=o.findIndex(e=>e.dbFullName==t);if(i<0)throw Error("Target Database index not found!");let d=a.find(e=>e.dbFullName===t);if(!d)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=d.tables.find(e=>e.tableName==s.tableName);if(!u)throw Error("Table schema not found!");let c=l.tables.findIndex(e=>e.tableName==s.tableName);u&&(o[i].tables[c]=u);let f=l?.childrenDatabases;f?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&l&&(o[r].tables=l.tables.map(e=>{let r=h().cloneDeep(e);return delete r.childrenTables,r}))});let p=o?.[i]?.tables?.[c]?.childrenTables;return p&&p.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=h().cloneDeep(u.fields),o[r].tables[t].indexes=h().cloneDeep(u.indexes))}),S().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.js ERROR: ",e.message),!1}}({dbFullName:c,dbSchemaData:f,delegatedUser:l,schema:a,table:o,userId:d}))throw Error("Update Failed!");return await g()({userId:d,targetDatabase:c}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),f()({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let P=(0,n.M)(a,"default"),N=(0,n.M)(a,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbSchemaDataForUser",pathname:"/api/updateDbSchemaDataForUser",bundlePath:"",filename:""},userland:a})},39831:(e,r,t)=>{t(81630);let a=t(72835);e.exports=async function({request:e,databaseSlug:r,user:t,query:s}){try{let o=t.id,n=null;if(!s?.delegated)return{dbUserId:o};let l=s.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=a({encryptedString:e.cookies[d]});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}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72835),o=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:i,csrfCookieName:d}=n();if(!e.cookies?.[i]?.match(/./))return null;let u=s({encryptedString:e.cookies[i]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${f}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await 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"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(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=r;e?.userId&&(s+=`user_${e.userId}_`),e?.database&&(s+=`${e.database}_`),s+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:s,csrfCookieName:o+=a}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let a=t(48225),s=t(29021),o=t(33873);function n({userId:e}){try{let r=o.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 a({component:"grabUserSchemaData",message:e.message}),null}}},51348:(e,r,t)=>{let a=t(9973),s=t(21580),o=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:s()}});async function n(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let a=t(29021);e.exports=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`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(23249));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={60818:e=>{e.exports=require("dotenv")},27825:e=>{e.exports=require("lodash")},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")},79646:e=>{e.exports=require("child_process")},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,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}}})},23249:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>N,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>I});var a=t(89947),o=t(2706),n=t(96762),l=t(51348),i=t.n(l),d=t(39831),u=t.n(d),c=t(48225),f=t.n(c),p=t(6420),_=t.n(p),b=t(2258),m=t(29021),S=t.n(m),E=t(27825),h=t.n(E),D=t(19261),g=t.n(D);t(29021),t(33873);let{execSync:v}=t(79646);async function I(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.schema,a=e.body.database,o=e.body.table;e.body.delegated;try{let n;let l=await u()({request:e,user:t,databaseSlug:a,query:e.query}),d=l?.rootUserId?l.rootUserId:t.id,c=`datasquirel_user_${d}_${a}`.replace(/[^a-z\_0-9]/g,"");if(l?.delegated){let e=await i()("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 f=(0,b.default)({userId:d});if(!f)throw Error("Database schema not found!");if(!function({dbSchemaData:e,delegatedUser:r,dbFullName:t,schema:s,table:a,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=h().cloneDeep(e),l=o.find(e=>e.dbFullName==t);if(!l)throw Error("Old Database schema not found!");let i=o.findIndex(e=>e.dbFullName==t);if(i<0)throw Error("Target Database index not found!");let d=s.find(e=>e.dbFullName===t);if(!d)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=d.tables.find(e=>e.tableName==a.tableName);if(!u)throw Error("Table schema not found!");let c=l.tables.findIndex(e=>e.tableName==a.tableName);u&&(o[i].tables[c]=u);let f=l?.childrenDatabases;f?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&l&&(o[r].tables=l.tables.map(e=>{let r=h().cloneDeep(e);return delete r.childrenTables,r}))});let p=o?.[i]?.tables?.[c]?.childrenTables;return p&&p.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=h().cloneDeep(u.fields),o[r].tables[t].indexes=h().cloneDeep(u.indexes))}),S().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.js ERROR: ",e.message),!1}}({dbFullName:c,dbSchemaData:f,delegatedUser:l,schema:s,table:o,userId:d}))throw Error("Update Failed!");return await g()({userId:d,targetDatabase:c}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),f()({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let N=(0,n.M)(s,"default"),P=(0,n.M)(s,"config"),A=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbSchemaDataForUser",pathname:"/api/updateDbSchemaDataForUser",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,n=null;if(!a?.delegated)return{dbUserId:o};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=s({encryptedString:e.cookies[d]});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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),o=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:i,csrfCookieName:d}=n();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let c=JSON.parse(u);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${f}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),{keyCookieName:o,csrfCookieName:n+=s}}},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let s=t(48225),a=t(29021),o=t(33873);function n({userId:e}){try{let r=o.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(a.readFileSync(r,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),o=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:a()}});async function n(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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,[2451],()=>t(23249));module.exports=s})(); \ 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 b645ce6..d6acf1d 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")},81630:e=>{e.exports=require("http")},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}}})},96016:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),c=t(33364),i=t.n(c),l=t(6420),u=t.n(l);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:s}=e.body,n=(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=s[e]))}),r})(),o=await i()({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:s.id,data:{...n},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=a();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:D}){if(!u||!Object.keys(u).length)return null;let E=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=D?i:E?o:a,h=Object.keys(u),m=[],v=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"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?v.push(String(t)):v.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 ${l} SET ${m.join(",")} WHERE \`${_}\`=?`;return v.push(d),E?await g(y,v):await g({paradigm:r,database:t,queryString:y,queryValues:v})}e.exports=l},16570:e=>{e.exports={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"]}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){a.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(t,c).then(p).catch(_):a.query(t).then(p).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96016);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")},81630:e=>{e.exports=require("http")},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}}})},96016:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),c=t(33364),i=t.n(c),l=t(6420),u=t.n(l);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:s}=e.body,n=(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=s[e]))}),r})(),o=await i()({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:s.id,data:{...n},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=a();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:D}){if(!u||!Object.keys(u).length)return null;let E=!!D||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=D?i:E?o:a,h=Object.keys(u),m=[],v=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"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?v.push(String(t)):v.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 L=`UPDATE ${l} SET ${m.join(",")} WHERE \`${_}\`=?`;return v.push(d),E?await g(L,v):await g({paradigm:r,database:t,queryString:L,queryValues:v})}e.exports=l},16570:e=>{e.exports={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"]}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){a.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(t,c).then(p).catch(_):a.query(t).then(p).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96016);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 bde385b..17b16d3 100644 --- a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js @@ -1,4 +1,4 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},82595:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>h,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>D});var a=t(89947),n=t(2706),o=t(96762),i=t(96771),l=t.n(i),c=t(73677),u=t.n(c),d=t(39831),p=t.n(d),_=t(48225),S=t.n(_),g=t(6420),E=t.n(g),f=t(33364),m=t.n(f);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await E()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:s,tableName:a,payload:n,entryId:o,tableSchema:i,delegated:c,dbId:d}=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 p()({databaseSlug:s,request:e,user:t,query:e.query}),_=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${s}`:`datasquirel_user_${t.id}_${s}`;if(!await u()({user:t,confirmedDelegetedUser:c,database:s,table:a,dbId:d,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let S=await m()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:a,identifierColumnName:"id",identifierValue:o,data:n,tableSchema:i});if(S?.error)throw Error(S.error);if(!S)throw Error("No result returned!");await l()({dbName:_,entryId:o,entryOrder:n.order,tableName:a,tableSchema:i}),r.json({success:!0,payload:S})}catch(e){S()({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 h=(0,o.M)(s,"default"),y=(0,o.M)(s,"config"),b=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await s("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 s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},96771:(e,r,t)=>{let s=t(21339);e.exports=async function({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:n}){try{if(n.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let n=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!n?.[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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=t;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},33364:(e,r,t)=>{let s=t(72583),a=t(16570),n=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:g,useLocal:E}){if(!u||!Object.keys(u).length)return null;let f=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=E?l:f?n:o,D=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===r):null,o=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,a)),o?.encrypted&&(t=i({data:t,encryptionKey:S,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?y.push(String(t)):y.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 b=`UPDATE ${c} SET ${h.join(",")} WHERE \`${p}\`=?`;return y.push(_),f?await m(b,y):await m({paradigm:r,database:t,queryString:b,queryValues:y})}e.exports=c},16570:e=>{e.exports={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"]}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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")},81630:e=>{e.exports=require("http")},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}}})},82595:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>h,routeModule:()=>N});var s={};t.r(s),t.d(s,{default:()=>D});var a=t(89947),n=t(2706),o=t(96762),i=t(96771),l=t.n(i),c=t(73677),u=t.n(c),d=t(39831),p=t.n(d),_=t(48225),S=t.n(_),g=t(6420),E=t.n(g),f=t(33364),m=t.n(f);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await E()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:s,tableName:a,payload:n,entryId:o,tableSchema:i,delegated:c,dbId:d}=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 p()({databaseSlug:s,request:e,user:t,query:e.query}),_=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${s}`:`datasquirel_user_${t.id}_${s}`;if(!await u()({user:t,confirmedDelegetedUser:c,database:s,table:a,dbId:d,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let S=await m()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:a,identifierColumnName:"id",identifierValue:o,data:n,tableSchema:i});if(S?.error)throw Error(S.error);if(!S)throw Error("No result returned!");await l()({dbName:_,entryId:o,entryOrder:n.order,tableName:a,tableSchema:i}),r.json({success:!0,payload:S})}catch(e){S()({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 h=(0,o.M)(s,"default"),y=(0,o.M)(s,"config"),N=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(48225);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await s("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 s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72835);e.exports=async function({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=s({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}}},96771:(e,r,t)=>{let s=t(21339);e.exports=async function({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:n}){try{if(n.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let n=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!n?.[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}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72835),n=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),a=t(16570),n=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:g,useLocal:E}){if(!u||!Object.keys(u).length)return null;let f=!!E||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=E?l:f?n:o,D=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===r):null,o=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,a)),o?.encrypted&&(t=i({data:t,encryptionKey:S,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?y.push(String(t)):y.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 ${c} SET ${h.join(",")} WHERE \`${p}\`=?`;return y.push(_),f?await m(N,y):await m({paradigm:r,database:t,queryString:N,queryValues:y})}e.exports=c},16570:e=>{e.exports={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"]}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({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"],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 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/updateUser.js b/dsql-app/.local_dist/server/pages/api/updateUser.js index 090b253..f7f0520 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js @@ -1,4 +1,4 @@ -"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")},34229:e=>{e.exports=require("node-fetch")},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")},81630:e=>{e.exports=require("http")},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}}})},43359:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>y,routeModule:()=>L});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(17662),u=t.n(c),p=t(48225),d=t.n(p),S=t(6420),_=t.n(S),f=t(33873),m=t.n(f),g=t(79646),E=t(33364),h=t.n(E);async function D(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await _()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:s,last_name:n,image:a}=e.body;try{let e=(await l()(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===a,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let i=m().join(o,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),c=m().join(o,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await u()({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:i,sourceType:"string"==typeof a?"url":"base64"}),await u()({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:c,maxSize:250,sourceType:"string"==typeof a?"url":"base64"}),(0,g.execSync)(`chmod 644 ${i} ${c}`));let p=i.replace(o,process.env.DSQL_STATIC_HOST||""),d=c.replace(o,process.env.DSQL_STATIC_HOST||"");await h()({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:s,last_name:n,image:p,image_thumbnail:d}}),await h()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:s,last_name:n,image:p,image_thumbnail:d}}),r.json({user:!0})}catch(e){d()({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let y=(0,o.M)(s,"default"),v=(0,o.M)(s,"config"),L=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:s})},17662:(e,r,t)=>{let s=t(34229),n=t(9288),a=t(48225);e.exports=async function({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:o}){try{async function i(){let r;if(o?.match("url")){if(e.match(/^http/i)){let t=await s(e,{});r=await t.buffer()}else r=`./public${e}`}else o?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let a=await i(),l=t||650,c=n(a),{width:u,height:p,format:d}=await c.metadata();if(u&&p&&u>l){let e=l/u;c.resize(l,Math.round(p*e),{fit:"cover"})}d&&c.toFormat(d,{quality:80}),await c.toFile(r)}catch(e){a({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:p,identifierColumnName:d,identifierValue:S,encryptionKey:_,encryptionSalt:f,useLocal:m}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),E=m?l:g?a:o,h=Object.keys(u),D=[],y=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=i({data:t,encryptionKey:_,encryptionSalt:f})),"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"}}),D.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}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${c} SET ${D.join(",")} WHERE \`${d}\`=?`;return y.push(S),g?await E(v,y):await E({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=c},16570:e=>{e.exports={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"]}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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")},34229:e=>{e.exports=require("node-fetch")},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")},81630:e=>{e.exports=require("http")},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}}})},43359:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>y,routeModule:()=>L});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),c=t(17662),u=t.n(c),p=t(48225),d=t.n(p),_=t(6420),S=t.n(_),f=t(33873),m=t.n(f),g=t(79646),E=t(33364),h=t.n(E);async function D(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await S()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:s,last_name:n,image:a}=e.body;try{let e=(await l()(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===a,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let i=m().join(o,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),c=m().join(o,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await u()({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:i,sourceType:"string"==typeof a?"url":"base64"}),await u()({imageSourceUrl:"string"==typeof a?a:a.imageBase64,imageWritePath:c,maxSize:250,sourceType:"string"==typeof a?"url":"base64"}),(0,g.execSync)(`chmod 644 ${i} ${c}`));let p=i.replace(o,process.env.DSQL_STATIC_HOST||""),d=c.replace(o,process.env.DSQL_STATIC_HOST||"");await h()({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:s,last_name:n,image:p,image_thumbnail:d}}),await h()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:s,last_name:n,image:p,image_thumbnail:d}}),r.json({user:!0})}catch(e){d()({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let y=(0,o.M)(s,"default"),v=(0,o.M)(s,"config"),L=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:s})},17662:(e,r,t)=>{let s=t(34229),n=t(9288),a=t(48225);e.exports=async function({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:o}){try{async function i(){let r;if(o?.match("url")){if(e.match(/^http/i)){let t=await s(e,{});r=await t.buffer()}else r=`./public${e}`}else o?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let a=await i(),l=t||650,c=n(a),{width:u,height:p,format:d}=await c.metadata();if(u&&p&&u>l){let e=l/u;c.resize(l,Math.round(p*e),{fit:"cover"})}d&&c.toFormat(d,{quality:80}),await c.toFile(r)}catch(e){a({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),a=t(29021),o=t(31341);async function i(e,r,t,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:p,identifierColumnName:d,identifierValue:_,encryptionKey:S,encryptionSalt:f,useLocal:m}){if(!u||!Object.keys(u).length)return null;let g=!!m||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),E=m?l:g?a:o,h=Object.keys(u),D=[],y=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"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"}}),D.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}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let v=`UPDATE ${c} SET ${D.join(",")} WHERE \`${d}\`=?`;return y.push(_),g?await E(v,y):await E({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=c},16570:e=>{e.exports={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"]}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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/updateUserDatabase.js b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js index 9b9bb66..cb89835 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")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},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}}})},29750:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>E,routeModule:()=>y});var s={};r.r(s),r.d(s,{default:()=>g});var n=r(89947),a=r(2706),o=r(96762),l=r(33364),i=r.n(l),c=r(48225),u=r.n(c),p=r(6420),d=r.n(p),_=r(57638),S=r.n(_);let m=r(29021),f=r(21820);r(33873);let{execSync:D}=r(79646);async function g(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await d()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{id:s,db_name:n,db_slug:a,db_description:o,db_image:l,db_full_name:c,active_clone:p,active_clone_parent_db:_}=e.body;c?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});let g=`datasquirel_user_${r.id}_${a}`;if(await i()({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:n,db_slug:a,db_description:o,db_image:l,db_full_name:g}}),c&&c!==g){console.log("Renaming Database");let e=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",t=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await S()({queryString:`CREATE DATABASE \`${g}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`,database:c});let r={cwd:process.cwd()};f.platform().match(/win/i)&&(r.shell="bash.exe");let s=`${t} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${c} > tmpDbFile.sql`;console.log(`updateUserDatabase.js exe => ${s}`),D(s,r),D(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${g} < tmpDbFile.sql`,r),await S()({queryString:`DROP DATABASE \`${c}\``,database:c})}catch(e){u()({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:r})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`,s=JSON.parse(m.readFileSync(e,"utf8")),i=s.filter(e=>e.dbFullName===c);if(i[0].dbName=n,i[0].dbFullName=g,i[0].dbDescription=o,i[0].dbImage=l,i[0].dbSlug=a,p){let e=s.filter(e=>e.dbFullName===i[0].childDatabaseDbFullName)[0],t=e.childrenDatabases?.find(e=>e.dbFullName===c);t&&(t.dbFullName=g)}m.writeFileSync(`${e}`,JSON.stringify(s),"utf8"),t.json({success:!0})}catch(e){u()({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72835),a=r(29021),o=r(31341);async function l(e,t,r,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=l},31341:e=>{e.exports=function(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=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},33364:(e,t,r)=>{let s=r(72583),n=r(16570),a=r(51348),o=r(21339),l=r(20503),i=r(44900);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:p,identifierColumnName:d,identifierValue:_,encryptionKey:S,encryptionSalt:m,useLocal:f}){if(!u||!Object.keys(u).length)return null;let D=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),g=f?i:D?a:o,E=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,n)),o?.encrypted&&(r=l({data:r,encryptionKey:S,encryptionSalt:m})),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),h.push(`\`${t}\`=?`),"number"==typeof r?y.push(String(r)):y.push(r)}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 b=`UPDATE ${c} SET ${h.join(",")} WHERE \`${d}\`=?`;return y.push(_),D?await g(b,y):await g({paradigm:t,database:r,queryString:b,queryValues:y})}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},16570:e=>{e.exports={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"]}}},6061:(e,t,r)=>{let s=r(72835),n=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let a=0;a",t.message),e}}},48225:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,req:a}){let o=new Date,l=(()=>{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 n=`🚀 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")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},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}}})},29750:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>E,routeModule:()=>y});var s={};r.r(s),r.d(s,{default:()=>g});var n=r(89947),a=r(2706),o=r(96762),l=r(33364),i=r.n(l),c=r(48225),u=r.n(c),p=r(6420),d=r.n(p),_=r(57638),S=r.n(_);let m=r(29021),f=r(21820);r(33873);let{execSync:D}=r(79646);async function g(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await d()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{id:s,db_name:n,db_slug:a,db_description:o,db_image:l,db_full_name:c,active_clone:p,active_clone_parent_db:_}=e.body;c?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});let g=`datasquirel_user_${r.id}_${a}`;if(await i()({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:n,db_slug:a,db_description:o,db_image:l,db_full_name:g}}),c&&c!==g){console.log("Renaming Database");let e=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",t=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await S()({queryString:`CREATE DATABASE \`${g}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`,database:c});let r={cwd:process.cwd()};f.platform().match(/win/i)&&(r.shell="bash.exe");let s=`${t} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${c} > tmpDbFile.sql`;console.log(`updateUserDatabase.js exe => ${s}`),D(s,r),D(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${g} < tmpDbFile.sql`,r),await S()({queryString:`DROP DATABASE \`${c}\``,database:c})}catch(e){u()({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:r})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`,s=JSON.parse(m.readFileSync(e,"utf8")),i=s.filter(e=>e.dbFullName===c);if(i[0].dbName=n,i[0].dbFullName=g,i[0].dbDescription=o,i[0].dbImage=l,i[0].dbSlug=a,p){let e=s.filter(e=>e.dbFullName===i[0].childDatabaseDbFullName)[0],t=e.childrenDatabases?.find(e=>e.dbFullName===c);t&&(t.dbFullName=g)}m.writeFileSync(`${e}`,JSON.stringify(s),"utf8"),t.json({success:!0})}catch(e){u()({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72835),a=r(29021),o=r(31341);async function l(e,t,r,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=l},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=r;let o=t;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},33364:(e,t,r)=>{let s=r(72583),n=r(16570),a=r(51348),o=r(21339),l=r(20503),i=r(44900);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:p,identifierColumnName:d,identifierValue:_,encryptionKey:S,encryptionSalt:m,useLocal:f}){if(!u||!Object.keys(u).length)return null;let D=!!f||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),g=f?i:D?a:o,E=Object.keys(u),h=[],y=[];for(let e=0;ee.fieldName===t):null,o=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,n)),o?.encrypted&&(r=l({data:r,encryptionKey:S,encryptionSalt:m})),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),h.push(`\`${t}\`=?`),"number"==typeof r?y.push(String(r)):y.push(r)}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 b=`UPDATE ${c} SET ${h.join(",")} WHERE \`${d}\`=?`;return y.push(_),D?await g(b,y):await g({paradigm:t,database:r,queryString:b,queryValues:y})}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},16570:e=>{e.exports={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"]}}},6061:(e,t,r)=>{let s=r(72835),n=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let a=0;a",t.message),e}}},48225:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,req:a}){let o=new Date,l=(()=>{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 n=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,t,r)=>{r(29021);let s=r(6061),n=r(48225),a=r(51348),o=r(21339),l=r(44900);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:i,useLocal:c}){let u;let p=!!r?.match(/^datasquirel$/),d=c?l:p?a:o;try{u=e&&t&&Array.isArray(t)&&t[0]?p?await d(e,t):await d({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):p?await d(e):await d({paradigm:"Full Access",database:r,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,l,i),a.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,l=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("Encryption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,l,i),a.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),a=r(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:l,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:a()}}),l&&Array.isArray(l)&&l[0]?o.query(r,l).then(p).catch(d):o.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,t,r)=>{let s=r(9973),n=r(21580);async function a(...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:n()},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}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=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`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=29750);module.exports=r})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,t,r)=>{r(29021);let s=r(6061),n=r(48225),a=r(51348),o=r(21339),l=r(44900);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:i,useLocal:c}){let u;let p=!!c||!!r?.match(/^datasquirel$/),d=c?l:p?a:o;try{u=e&&t&&Array.isArray(t)&&t[0]?p?await d(e,t):await d({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):p?await d(e):await d({paradigm:"Full Access",database:r,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,l=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(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(o,l,i),a.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=({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,l=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("Encryption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,l,i),a.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),a=r(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:l,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:a()}}),l&&Array.isArray(l)&&l[0]?o.query(r,l).then(p).catch(d):o.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,t,r)=>{let s=r(9973),n=r(21580);async function a(...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:n()},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}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=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`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=29750);module.exports=r})(); \ 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 8b9df4b..dc07bf2 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={60818:e=>{e.exports=require("dotenv")},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")},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,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}}})},56363:(e,t,r)=>{r.r(t),r.d(t,{config:()=>A,default:()=>v,routeModule:()=>L});var s={};r.r(s),r.d(s,{default:()=>y});var a=r(89947),n=r(2706),o=r(96762),l=r(51348),i=r.n(l),c=r(73677),u=r.n(c),d=r(39831),_=r.n(d),p=r(48225),S=r.n(p),f=r(6420),g=r.n(f),E=r(33364),b=r.n(E),m=r(19261),D=r.n(m);let h=r(29021);r(33873);let{execSync:N}=r(79646);async function y(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await g()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:a,dbId:n,tableNameOld:o,payload:l,delegated:c}=e.body,{tableName:d,tableFullName:p,tableDescription:f}=l;if(!d?.match(/./)||d.match(/[^a-zA-Z0-9-_]/))return t.json({success:!1,msg:"Bad Input"});try{let l=await _()({databaseSlug:a,request:e,user:r,query:e.query});if(!await u()({user:r,confirmedDelegetedUser:l,database:a,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),t.json({success:!1,msg:"Unauthorized"});let g=l?.rootUserId?l.rootUserId:r.id,E=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${g}/main.json`,m=JSON.parse(h.readFileSync(E,"utf8")),N=m.filter(e=>e.dbFullName===s)[0].tables.filter((e,t)=>{if(e.tableName===o)return!0});if(N&&N[0])N[0].tableName=d,N[0].tableNameOld=o,N[0].tableFullName=p,f&&(N[0].tableDescription=f),N[0].childrenTables&&N[0].childrenTables.forEach(e=>{try{m.filter(t=>t.dbFullName===e.dbNameFull)[0].tables.filter(t=>{if(t.tableName===e.tableName)return!0})[0].childTableName=d}catch(e){S()({component:"/api/updateUserTable/lines-131-138",message:e.message,user:r})}});else throw Error("Table Does not exist");h.writeFileSync(`${E}`,JSON.stringify(m),"utf8"),await b()({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:p,table_slug:d,table_description:f}}),c&&l&&await i()("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[d,r.id,l.rootUserId,o,a]);let y=s.replace(/[^a-z\_0-9]/g,"");await D()({userId:g,targetDatabase:y}),t.json({success:!0})}catch(e){S()({component:"/api/updateUserTable/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Database Files could not be written!"})}}let v=(0,o.M)(s,"default"),A=(0,o.M)(s,"config"),L=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:s})},73677:(e,t,r)=>{let s=r(51348),a=r(48225);e.exports=async function({user:e,confirmedDelegetedUser:t,database:r,table:n,priviledgeRegex:o,dbId:l}){let i,c;try{t?.delegated?(i=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[t.rootUserId,e.id,r,n]),c=i[0]?.priviledge?.match(o)):(i=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),c=!0)}catch(t){a({component:"checkUserRights",message:t.message,user:e})}return!!i&&!!i[0]&&!!c}},39831:(e,t,r)=>{r(81630);let s=r(72835);e.exports=async function({request:e,databaseSlug:t,user:r,query:a}){try{let n=r.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${t}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let r=s({encryptedString:e.cookies[c]});if(!r)throw Error("Invalid Token");if((o=JSON.parse(r)).databaseSlug===t)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}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72835),n=r(29021),o=r(31341);async function l(e,t,r,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(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=t;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=r;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},33364:(e,t,r)=>{let s=r(72583),a=r(16570),n=r(51348),o=r(21339),l=r(20503),i=r(44900);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:d,identifierColumnName:_,identifierValue:p,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let E=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),b=g?i:E?n:o,m=Object.keys(u),D=[],h=[];for(let e=0;ee.fieldName===t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,a)),o?.encrypted&&(r=l({data:r,encryptionKey:S,encryptionSalt:f})),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),D.push(`\`${t}\`=?`),"number"==typeof r?h.push(String(r)):h.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE ${c} SET ${D.join(",")} WHERE \`${_}\`=?`;return h.push(p),E?await b(N,h):await b({paradigm:t,database:r,queryString:N,queryValues:h})}e.exports=c},16570:e=>{e.exports={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"]}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=({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,l=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("Encryption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=a("aes-192-cbc",s(o,l,i),n.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=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:a()}});async function o(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(r,l).then(d).catch(_):o.query(r).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,t,r)=>{let s=r(9973),a=r(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,t,r)=>{let s=r(29021);e.exports=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`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[2451],()=>r(56363));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={60818:e=>{e.exports=require("dotenv")},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")},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,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}}})},56363:(e,t,r)=>{r.r(t),r.d(t,{config:()=>A,default:()=>v,routeModule:()=>L});var s={};r.r(s),r.d(s,{default:()=>y});var a=r(89947),n=r(2706),o=r(96762),l=r(51348),i=r.n(l),c=r(73677),u=r.n(c),d=r(39831),_=r.n(d),p=r(48225),S=r.n(p),f=r(6420),g=r.n(f),E=r(33364),D=r.n(E),m=r(19261),b=r.n(m);let h=r(29021);r(33873);let{execSync:N}=r(79646);async function y(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await g()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:a,dbId:n,tableNameOld:o,payload:l,delegated:c}=e.body,{tableName:d,tableFullName:p,tableDescription:f}=l;if(!d?.match(/./)||d.match(/[^a-zA-Z0-9-_]/))return t.json({success:!1,msg:"Bad Input"});try{let l=await _()({databaseSlug:a,request:e,user:r,query:e.query});if(!await u()({user:r,confirmedDelegetedUser:l,database:a,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),t.json({success:!1,msg:"Unauthorized"});let g=l?.rootUserId?l.rootUserId:r.id,E=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${g}/main.json`,m=JSON.parse(h.readFileSync(E,"utf8")),N=m.filter(e=>e.dbFullName===s)[0].tables.filter((e,t)=>{if(e.tableName===o)return!0});if(N&&N[0])N[0].tableName=d,N[0].tableNameOld=o,N[0].tableFullName=p,f&&(N[0].tableDescription=f),N[0].childrenTables&&N[0].childrenTables.forEach(e=>{try{m.filter(t=>t.dbFullName===e.dbNameFull)[0].tables.filter(t=>{if(t.tableName===e.tableName)return!0})[0].childTableName=d}catch(e){S()({component:"/api/updateUserTable/lines-131-138",message:e.message,user:r})}});else throw Error("Table Does not exist");h.writeFileSync(`${E}`,JSON.stringify(m),"utf8"),await D()({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:p,table_slug:d,table_description:f}}),c&&l&&await i()("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[d,r.id,l.rootUserId,o,a]);let y=s.replace(/[^a-z\_0-9]/g,"");await b()({userId:g,targetDatabase:y}),t.json({success:!0})}catch(e){S()({component:"/api/updateUserTable/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Database Files could not be written!"})}}let v=(0,o.M)(s,"default"),A=(0,o.M)(s,"config"),L=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:s})},73677:(e,t,r)=>{let s=r(51348),a=r(48225);e.exports=async function({user:e,confirmedDelegetedUser:t,database:r,table:n,priviledgeRegex:o,dbId:l}){let i,c;try{t?.delegated?(i=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[t.rootUserId,e.id,r,n]),c=i[0]?.priviledge?.match(o)):(i=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),c=!0)}catch(t){a({component:"checkUserRights",message:t.message,user:e})}return!!i&&!!i[0]&&!!c}},39831:(e,t,r)=>{r(81630);let s=r(72835);e.exports=async function({request:e,databaseSlug:t,user:r,query:a}){try{let n=r.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${t}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let r=s({encryptedString:e.cookies[c]});if(!r)throw Error("Invalid Token");if((o=JSON.parse(r)).databaseSlug===t)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}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72835),n=r(29021),o=r(31341);async function l(e,t,r,l){let{keyCookieName:i,csrfCookieName:c}=o();if(!e.cookies?.[i]?.match(/./))return null;let u=a({encryptedString:e.cookies[i]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=l},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=t;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=r;let o=t;return e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,t,r)=>{let s=r(72583),a=r(16570),n=r(51348),o=r(21339),l=r(20503),i=r(44900);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:d,identifierColumnName:_,identifierValue:p,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let E=!!g||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),D=g?i:E?n:o,m=Object.keys(u),b=[],h=[];for(let e=0;ee.fieldName===t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=s(r,a)),o?.encrypted&&(r=l({data:r,encryptionKey:S,encryptionSalt:f})),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.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"}}),b.push(`\`${t}\`=?`),"number"==typeof r?h.push(String(r)):h.push(r)}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 N=`UPDATE ${c} SET ${b.join(",")} WHERE \`${_}\`=?`;return h.push(p),E?await D(N,h):await D({paradigm:t,database:r,queryString:N,queryValues:h})}e.exports=c},16570:e=>{e.exports={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"]}}},20503:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=({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,l=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("Encryption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=a("aes-192-cbc",s(o,l,i),n.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=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:a()}});async function o(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(r,l).then(d).catch(_):o.query(r).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,t,r)=>{let s=r(9973),a=r(21580);async function n(...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:a()},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}}}e.exports=n},21580:(e,t,r)=>{let s=r(29021);e.exports=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`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[2451],()=>r(56363));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 4d76571..b863671 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")},81630:e=>{e.exports=require("http")},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}}})},66162:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(33364),c=t.n(i),l=t(6420),u=t.n(l);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,s=(()=>{let r=Object.keys(e.body),s={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(s[r]=e.body[r]))}),s})(),n=await c()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...s}});r.json({success:!!n?.affectedRows,msg:n?.affectedRows?"User Updated":n})}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function i(e,r,t,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},31341:e=>{e.exports=function(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=r;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),e?.database&&(o+=`${e.database}_`),{keyCookieName:n,csrfCookieName:o+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),i=t(20503),c=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:E}){if(!u||!Object.keys(u).length)return null;let D=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=E?c:D?o:a,h=Object.keys(u),m=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"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?y.push(String(t)):y.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 v=`UPDATE ${l} SET ${m.join(",")} WHERE \`${_}\`=?`;return y.push(d),D?await g(v,y):await g({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=l},16570:e=>{e.exports={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"]}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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=n("aes-192-cbc",s(a,i,c),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function _(e){a.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(t,i).then(p).catch(_):a.query(t).then(p).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=66162);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")},81630:e=>{e.exports=require("http")},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}}})},66162:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),c=t(33364),i=t.n(c),l=t(6420),u=t.n(l);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await u()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,s=(()=>{let r=Object.keys(e.body),s={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(s[r]=e.body[r]))}),s})(),n=await i()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...s}});r.json({success:!!n?.affectedRows,msg:n?.affectedRows?"User Updated":n})}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),o=t(29021),a=t(31341);async function c(e,r,t,c){let{keyCookieName:i,csrfCookieName:l}=a();if(!e.cookies?.[i]?.match(/./))return null;let u=n({encryptedString:e.cookies[i]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${_}/${p.csrf_k}`))return null;if(0==p.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=c},31341:e=>{e.exports=function(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=e?.database||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;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=s}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),o=t(51348),a=t(21339),c=t(20503),i=t(44900);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:p,identifierColumnName:_,identifierValue:d,encryptionKey:S,encryptionSalt:f,useLocal:E}){if(!u||!Object.keys(u).length)return null;let D=!!E||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=E?i:D?o:a,h=Object.keys(u),m=[],y=[];for(let e=0;ee.fieldName===r):null,a=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;a?.richText&&(t=s(t,n)),a?.encrypted&&(t=c({data:t,encryptionKey:S,encryptionSalt:f})),"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?y.push(String(t)):y.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 v=`UPDATE ${l} SET ${m.join(",")} WHERE \`${_}\`=?`;return y.push(d),D?await g(v,y):await g({paradigm:r,database:t,queryString:v,queryValues:y})}e.exports=l},16570:e=>{e.exports={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"]}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=({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,c=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(!c?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=n("aes-192-cbc",s(a,c,i),o.alloc(16,0));try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=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:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((i,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),i(JSON.parse(JSON.stringify(e)))}function _(e){a.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),c&&Array.isArray(c)&&c[0]?a.query(t,c).then(p).catch(_):a.query(t).then(p).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=66162);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 f18731b..b477430 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={60818:e=>{e.exports=require("dotenv")},27825:e=>{e.exports=require("lodash")},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")},79646:e=>{e.exports=require("child_process")},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,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}}})},46127:(e,r,s)=>{s.r(r),s.d(r,{config:()=>v,default:()=>m,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>h});var a=s(89947),n=s(2706),i=s(96762),o=s(6420),u=s.n(o),c=s(48225),l=s.n(c);s(27825);var d=s(51348),f=s.n(d),p=s(33873),_=s.n(p);s(79646);var S=s(19261),E=s.n(S);let b=s(29021);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await u()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=e.body.schema,a=e.body.dbId;try{let e=await f()("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[s.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],i=_().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`),o=JSON.parse(b.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=t.tables,u.childrenDatabases)for(let e=0;ee.dbFullName===r);if(!s||!s.tables){u.childrenDatabases?.splice(e,1);continue}s.tables=t.tables}b.writeFileSync(`${i}`,JSON.stringify(o),"utf8"),await E()({userId:s.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(t){l()({component:"/api/acceptUserInvitation/catch-error",message:t.message,user:s,req:e}),r.json({success:!1})}}let m=(0,i.M)(t,"default"),v=(0,i.M)(t,"config"),D=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:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72835),n=s(29021),i=s(31341);async function o(e,r,s,o){let{keyCookieName:u,csrfCookieName:c}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=a({encryptedString:e.cookies[u]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${f}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=r;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=t}}},51348:(e,r,s)=>{let t=s(9973),a=s(21580),n=t({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:a()}});async function i(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[2451],()=>s(46127));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={60818:e=>{e.exports=require("dotenv")},27825:e=>{e.exports=require("lodash")},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")},79646:e=>{e.exports=require("child_process")},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,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}}})},46127:(e,r,s)=>{s.r(r),s.d(r,{config:()=>v,default:()=>m,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>b});var a=s(89947),n=s(2706),i=s(96762),o=s(6420),u=s.n(o),c=s(48225),l=s.n(c);s(27825);var d=s(51348),_=s.n(d),p=s(33873),f=s.n(p);s(79646);var S=s(19261),E=s.n(S);let h=s(29021);async function b(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await u()(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=e.body.schema,a=e.body.dbId;try{let e=await _()("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[s.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],i=f().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`),o=JSON.parse(h.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=t.tables,u.childrenDatabases)for(let e=0;ee.dbFullName===r);if(!s||!s.tables){u.childrenDatabases?.splice(e,1);continue}s.tables=t.tables}h.writeFileSync(`${i}`,JSON.stringify(o),"utf8"),await E()({userId:s.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(t){l()({component:"/api/acceptUserInvitation/catch-error",message:t.message,user:s,req:e}),r.json({success:!1})}}let m=(0,i.M)(t,"default"),v=(0,i.M)(t,"config"),D=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:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72835),n=s(29021),i=s(31341);async function o(e,r,s,o){let{keyCookieName:u,csrfCookieName:c}=i();if(!e.cookies?.[u]?.match(/./))return null;let l=a({encryptedString:e.cookies[u]});if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${_}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),{keyCookieName:n,csrfCookieName:i+=t}}},51348:(e,r,s)=>{let t=s(9973),a=s(21580),n=t({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:a()}});async function i(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[2451],()=>s(46127));module.exports=t})(); \ 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 573d6b7..146487b 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={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},48942:(e,a,t)=>{t.r(a),t.d(a,{config:()=>g,default:()=>f,routeModule:()=>T});var s={};t.r(s),t.d(s,{default:()=>p});var r=t(89947),l=t(2706),i=t(96762),n=t(48225),u=t.n(n),d=t(77619),o=t.n(d),m=t(25788),c=t.n(m);async function p(e,a){if("POST"!==e.method)return a.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:r,encryptionKey:l}=e.body,i=o()({key:t,database:r,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if((!i.full_access||!i.sign)&&!s?.password){a.json({success:!1,msg:"Password is required to create an account"});return}let n=`datasquirel_user_${i.user_id}_${r}`,u=await c()({encryptionKey:l,database:n,payload:s,userId:i.user_id});a.json(u)}catch(t){u()({component:"/api/user/add-user/main-catch-error",message:t.message,user:{},req:e}),a.json({success:!1,msg:"API Error",error:t.message})}}let f=(0,i.M)(s,"default"),g=(0,i.M)(s,"config"),T=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/user/[user_id]/add-user",pathname:"/api/user/[user_id]/add-user",bundlePath:"",filename:""},userland:s})},25788:(e,a,t)=>{let s=t(63026),r=t(47670),l=t(70402),i=t(57638),n=t(14533);e.exports=async function({encryptionKey:e,payload:a,database:t,userId:u,useLocal:d}){let o=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!o)return{success:!1,msg:"No encryption key provided",payload:null};if(!o?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let m=n({encryptionKey:o,password:String(a.password)});a.password=m;let c="SHOW COLUMNS FROM users",p=await i({queryString:c,database:t,useLocal:d});if(p?.[0]||(await s({userId:Number(u),database:t,useLocal:d,payload:a}),p=await i({queryString:c,database:t,useLocal:d})),!p?.[0])return{success:!1,msg:"Could not create users table"};let f=p.map(e=>e.Field);for(let e=0;e{t(29021),t(33873);let{execSync:s}=t(79646),r=t(48225),l=t(51348),{default:i}=t(2258),{default:n}=t(78634),u=t(47670),d=t(19261),o=t(44900),m=t(18801);e.exports=async function({userId:e,database:a,useLocal:t,payload:s}){try{let r=m({payload:s});if(!r)throw Error("Couldn't Get User Preset!");let c=i({userId:e});if(!c)throw Error("User schema data not found!");let p=c.find(e=>e.dbFullName===a);if(!p)throw Error("Couldn't Find Target Database!");let f=p?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof f&&f>0?p.tables[f]=r:p.tables.push(r),n({schemaData:c,userId:e});let g=t?await o("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await l("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return g?.[0]&&await u({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:g[0].id,db_slug:p.dbSlug,table_name:"Users",table_slug:"users"},useLocal:t}),await d({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.js ERROR: ${a.message}`),r({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},77619:(e,a,t)=>{let s=t(29021),r=t(72835);e.exports=({key:e,database:a,table:t,user_id:l})=>{if(!e||!l)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 n=r({encryptedString:e}),u=JSON.parse(n||""),d=s.existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(l)||!d)return null;if(!u.target_database)return u;if(!a&&u.target_database)return null;let o=u.target_database?.split(",").includes(String(a));if(o&&!u.target_table)return u;if(o&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},18801:(e,a,t)=>{let s=t(85288),r=t(48225);e.exports=function(e){try{let a=t(8693),r=t(95610),l=e?.payload?s({data:e?.payload,excludeData:r,excludeFields:a.fields}):[];console.log("supplementalFields",l);let i=[...a.fields,...l];console.log("allFields",i);let n=[...r.slice(0,2),...i,...r.slice(2)];return a.fields=[...n],a}catch(e){return console.log(`grabNewUsersTableSchema.js ERROR: ${e.message}`),r({component:"grabNewUsersTableSchema",message:e.message}),null}}},85288:(e,a,t)=>{let s=t(48225);e.exports=function({data:e,fields:a,excludeData:r,excludeFields:l}){try{t(81648),t(57539);let s=[],i=[];return e&&Object.keys(e)?.[0]&&(i=Object.keys(e)),a&&(i=[...i,...a],i=[...new Set(i)]),(i=i.filter(e=>!r||!Object.keys(r).includes(e)).filter(e=>!l||!l.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),s.push(e)}else"number"==typeof t?s.push({fieldName:a,dataType:"INT"}):s.push({fieldName:a,dataType:"VARCHAR(255)"})}),s}catch(e){return console.log(`grabSchemaFieldsFromData.js ERROR: ${e.message}`),s({component:"grabSchemaFieldsFromData.js",message:e.message}),[]}}},2258:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});let s=t(48225),r=t(29021),l=t(33873);function i({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(a,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},6061:(e,a,t)=>{let s=t(72835),r=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},78634:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});let s=t(48225),r=t(29021),l=t(33873);function i({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return r.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return s({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},70402:(e,a,t)=>{let s=t(48225),{default:r}=t(2258),{default:l}=t(78634),i=t(19261),n=t(85288);e.exports=async function({userId:e,database:a,newFields:t,newPayload:u}){try{let s=r({userId:e});if(!s)throw Error("User schema data not found!");let d=s.findIndex(e=>e.dbFullName===a);if(d<0)throw Error("Couldn't Find Target Database!");let o=s[d]?.tables.findIndex(e=>"users"===e.tableName),m=s[d].tables[o];if(!m?.fields?.[0])throw Error("Users Table Not Found!");let c=n({fields:t,data:u}),p=m.fields.findIndex(e=>"date_created"===e.fieldName);return m.fields.splice(p>=0?p:0,0,...c),l({schemaData:s,userId:e}),await i({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.js ERROR: ${a.message}`),s({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},57638:(e,a,t)=>{t(29021);let s=t(6061),r=t(48225),l=t(51348),i=t(21339),n=t(44900);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:u,useLocal:d}){let o;let m=!!t?.match(/^datasquirel$/),c=d?n:m?l:i;try{o=e&&a&&Array.isArray(a)&&a[0]?m?await c(e,a):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):m?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&u)try{let e=o;return await s({unparsedResults:e,tableSchema:u})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},14533:(e,a,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:a}){let t=a||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=s("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)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"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,[4050,2451],()=>t(48942));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={60818:e=>{e.exports=require("dotenv")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},48942:(e,a,t)=>{t.r(a),t.d(a,{config:()=>g,default:()=>f,routeModule:()=>T});var s={};t.r(s),t.d(s,{default:()=>p});var r=t(89947),l=t(2706),n=t(96762),i=t(48225),u=t.n(i),d=t(77619),o=t.n(d),m=t(25788),c=t.n(m);async function p(e,a){if("POST"!==e.method)return a.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:r,encryptionKey:l}=e.body,n=o()({key:t,database:r,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if((!n.full_access||!n.sign)&&!s?.password){a.json({success:!1,msg:"Password is required to create an account"});return}let i=`datasquirel_user_${n.user_id}_${r}`,u=await c()({encryptionKey:l,database:i,payload:s,userId:n.user_id});a.json(u)}catch(t){u()({component:"/api/user/add-user/main-catch-error",message:t.message,user:{},req:e}),a.json({success:!1,msg:"API Error",error:t.message})}}let f=(0,n.M)(s,"default"),g=(0,n.M)(s,"config"),T=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/user/[user_id]/add-user",pathname:"/api/user/[user_id]/add-user",bundlePath:"",filename:""},userland:s})},25788:(e,a,t)=>{let s=t(63026),r=t(47670),l=t(70402),n=t(57638),i=t(14533);e.exports=async function({encryptionKey:e,payload:a,database:t,userId:u,useLocal:d}){let o=u||process.env.DSQL_API_USER_ID,m=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!m)return{success:!1,msg:"No encryption key provided",payload:null};if(!m?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let c=i({encryptionKey:m,password:String(a.password)});a.password=c;let p="SHOW COLUMNS FROM users",f=await n({queryString:p,database:t,useLocal:d});if(f?.[0]||(await s({userId:Number(o),database:t,useLocal:d,payload:a}),f=await n({queryString:p,database:t,useLocal:d})),!f?.[0])return{success:!1,msg:"Could not create users table"};let g=f.map(e=>e.Field);for(let e=0;e{t(29021),t(33873);let{execSync:s}=t(79646),r=t(48225),l=t(51348),{default:n}=t(2258),{default:i}=t(78634),u=t(47670),d=t(19261),o=t(44900),m=t(18801);e.exports=async function({userId:e,database:a,useLocal:t,payload:s}){try{let r=m({payload:s});if(!r)throw Error("Couldn't Get User Preset!");let c=n({userId:e});if(!c)throw Error("User schema data not found!");let p=c.find(e=>e.dbFullName===a);if(!p)throw Error("Couldn't Find Target Database!");let f=p?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof f&&f>0?p.tables[f]=r:p.tables.push(r),i({schemaData:c,userId:e});let g=t?await o("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await l("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return g?.[0]&&await u({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:g[0].id,db_slug:p.dbSlug,table_name:"Users",table_slug:"users"},useLocal:t}),await d({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.js ERROR: ${a.message}`),r({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},77619:(e,a,t)=>{let s=t(29021),r=t(72835);e.exports=({key:e,database:a,table:t,user_id:l})=>{if(!e||!l)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 i=r({encryptedString:e}),u=JSON.parse(i||""),d=s.existsSync(`${n}/${u.sign}`);if(String(u.user_id)!==String(l)||!d)return null;if(!u.target_database)return u;if(!a&&u.target_database)return null;let o=u.target_database?.split(",").includes(String(a));if(o&&!u.target_table)return u;if(o&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},18801:(e,a,t)=>{let s=t(85288),r=t(48225);e.exports=function(e){try{let a=t(8693),r=t(95610),l=e?.payload?s({data:e?.payload,excludeData:r,excludeFields:a.fields}):[];console.log("supplementalFields",l);let n=[...a.fields,...l];console.log("allFields",n);let i=[...r.slice(0,2),...n,...r.slice(2)];return a.fields=[...i],a}catch(e){return console.log(`grabNewUsersTableSchema.js ERROR: ${e.message}`),r({component:"grabNewUsersTableSchema",message:e.message}),null}}},85288:(e,a,t)=>{let s=t(48225);e.exports=function({data:e,fields:a,excludeData:r,excludeFields:l}){try{t(81648),t(57539);let s=[],n=[];return e&&Object.keys(e)?.[0]&&(n=Object.keys(e)),a&&(n=[...n,...a],n=[...new Set(n)]),(n=n.filter(e=>!r||!Object.keys(r).includes(e)).filter(e=>!l||!l.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),s.push(e)}else"number"==typeof t?s.push({fieldName:a,dataType:"INT"}):s.push({fieldName:a,dataType:"VARCHAR(255)"})}),s}catch(e){return console.log(`grabSchemaFieldsFromData.js ERROR: ${e.message}`),s({component:"grabSchemaFieldsFromData.js",message:e.message}),[]}}},2258:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});let s=t(48225),r=t(29021),l=t(33873);function n({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r.readFileSync(a,"utf-8"))}catch(e){return s({component:"grabUserSchemaData",message:e.message}),null}}},6061:(e,a,t)=>{let s=t(72835),r=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},78634:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});let s=t(48225),r=t(29021),l=t(33873);function n({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return r.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return s({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},70402:(e,a,t)=>{let s=t(48225),{default:r}=t(2258),{default:l}=t(78634),n=t(19261),i=t(85288);e.exports=async function({userId:e,database:a,newFields:t,newPayload:u}){try{let s=r({userId:e});if(!s)throw Error("User schema data not found!");let d=s.findIndex(e=>e.dbFullName===a);if(d<0)throw Error("Couldn't Find Target Database!");let o=s[d]?.tables.findIndex(e=>"users"===e.tableName),m=s[d].tables[o];if(!m?.fields?.[0])throw Error("Users Table Not Found!");let c=i({fields:t,data:u}),p=m.fields.findIndex(e=>"date_created"===e.fieldName);return m.fields.splice(p>=0?p:0,0,...c),l({schemaData:s,userId:e}),await n({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.js ERROR: ${a.message}`),s({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},57638:(e,a,t)=>{t(29021);let s=t(6061),r=t(48225),l=t(51348),n=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:u,useLocal:d}){let o;let m=!!d||!!t?.match(/^datasquirel$/),c=d?i:m?l:n;try{o=e&&a&&Array.isArray(a)&&a[0]?m?await c(e,a):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):m?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&u)try{let e=o;return await s({unparsedResults:e,tableSchema:u})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},14533:(e,a,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:a}){let t=a||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=s("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)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"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,[4050,2451],()=>t(48942));module.exports=s})(); \ 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 99abebe..0bf863b 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,4 +1,4 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},21611:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(42249),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{deletedUserId:s,database:n}=e.body,a=u()({key:t,database:n?.db_slug,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");if(!a.full_access||!a.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${a.user_id}_${n}`,i=await p()({dbFullName:o,deletedUserId:s});r.json(i)}catch(t){l()({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let S=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:s})},42249:(e,r,t)=>{let s=t(64122),n=t(57638);e.exports=async function({dbFullName:e,deletedUserId:r,useLocal:t}){let a=await n({queryString:"SELECT * FROM users WHERE id = ?",queryValuesArray:[r],database:e,useLocal:t});return a?.[0]?{success:!0,result:await s({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),a=t(44900);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a:u?s:n,p=`DELETE FROM ${o} WHERE \`${i}\`=?`;return u?await d(p,[l]):await d({paradigm:r,queryString:p,database:t,queryValues:[l]})}catch(e){return null}}e.exports=o},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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")},81630:e=>{e.exports=require("http")},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}}})},21611:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(42249),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{deletedUserId:s,database:n}=e.body,a=u()({key:t,database:n?.db_slug,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");if(!a.full_access||!a.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${a.user_id}_${n}`,i=await p()({dbFullName:o,deletedUserId:s});r.json(i)}catch(t){l()({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let S=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:s})},42249:(e,r,t)=>{let s=t(64122),n=t(57638);e.exports=async function({dbFullName:e,deletedUserId:r,useLocal:t}){let a=await n({queryString:"SELECT * FROM users WHERE id = ?",queryValuesArray:[r],database:e,useLocal:t});return a?.[0]?{success:!0,result:await s({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339),a=t(44900);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:u?s:n,p=`DELETE FROM ${o} WHERE \`${i}\`=?`;return u?await d(p,[l]):await d({paradigm:r,queryString:p,database:t,queryValues:[l]})}catch(e){return null}}e.exports=o},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=21611);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=21611);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 9dd62f4..a9096c8 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,4 +1,4 @@ -"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")},81630:e=>{e.exports=require("http")},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}}})},40132:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),c=t.n(i);t(57638);var l=t(77619),u=t.n(l),p=t(17550),d=t.n(p);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:s,database:n}=e.body,a=u()({key:t,database:n,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");if(!a.full_access||!a.sign)return r.json({success:!1,msg:"Unauthorized"});let o=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),i=`datasquirel_user_${a.user_id}_${n}`,c=await d()({dbFullName:i,userId:s,fields:o});r.json(c)}catch(t){c()({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let S=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:s})},17550:(e,r,t)=>{let s=t(57638);e.exports=async function({fields:e,dbFullName:r,userId:t,useLocal:n}){let a=`SELECT ${e.join(",")} FROM users WHERE id=?`,o=await s({queryString:a,queryValuesArray:[t],database:r.replace(/[^a-z0-9_]/g,""),useLocal:n});return o&&o[0]?{success:!0,payload:o[0]}:{success:!1,payload:null}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(a)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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")},81630:e=>{e.exports=require("http")},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}}})},40132:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),c=t.n(i);t(57638);var l=t(77619),u=t.n(l),p=t(17550),d=t.n(p);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:s,database:n}=e.body,a=u()({key:t,database:n,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");if(!a.full_access||!a.sign)return r.json({success:!1,msg:"Unauthorized"});let o=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),i=`datasquirel_user_${a.user_id}_${n}`,c=await d()({dbFullName:i,userId:s,fields:o});r.json(c)}catch(t){c()({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let S=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:s})},17550:(e,r,t)=>{let s=t(57638);e.exports=async function({fields:e,dbFullName:r,userId:t,useLocal:n}){let a=`SELECT ${e.join(",")} FROM users WHERE id=?`,o=t||process.env.DSQL_API_USER_ID,i=await s({queryString:a,queryValuesArray:[o],database:r.replace(/[^a-z0-9_]/g,""),useLocal:n});return i&&i[0]?{success:!0,payload:i[0]}:{success:!1,payload:null}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),c=JSON.parse(i||""),l=s.existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(a)||!l)return null;if(!c.target_database)return c;if(!r&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(r));if(u&&!c.target_table)return c;if(u&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let p=!!t?.match(/^datasquirel$/),d=l?i:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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 l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=40132);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let p=!!l||!!t?.match(/^datasquirel$/),d=l?i:p?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?p?await d(e,r):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):p?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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 l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=40132);module.exports=t})(); \ No newline at end of file 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 42311fc..9d0ec79 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")},81630:e=>{e.exports=require("http")},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}}})},81725:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(81681),p=t.n(d);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:s,database:n,additionalFields:a,email_login:o,email_login_code:i,email_login_field:l,token:c,skipPassword:d}=e.body,g=e.headers.authorization,_=u()({key:g,database:n,user_id:String(e.query.user_id)});if(!_?.user_id)throw Error("Api Credentials invalid!");if(!_.full_access||!_.sign)return r.json({success:!1,msg:"Unauthorized"});let m=s.email,S=s.username,f=s.password,h=`datasquirel_user_${_.user_id}_${n}`,y=await p()({database:h,email:m,username:S,password:f,skipPassword:d,encryptionKey:t,additionalFields:a,email_login:o,email_login_code:i,email_login_field:l,token:c});r.json(y)}catch(t){l()({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let _=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:s})},81681:(e,r,t)=>{t(44900);let{writeAuthFile:s}=t(72047),n=t(57638),a=t(14533);e.exports=async function({encryptionKey:e,email:r,username:t,password:s,database:o,additionalFields:i,email_login:l,email_login_code:c,email_login_field:u,token:d,skipPassword:p,social:g,useLocal:_}){if(r?.match(/ /)||t&&t?.match(/ /)||s&&s?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let m=s?a({encryptionKey:e,password:s}):null,S=await n({queryString:"SELECT * FROM users WHERE email = ? OR username = ?",queryValuesArray:[r,t],database:o.replace(/[^a-z0-9_]/g,""),useLocal:_});if((!S||!S[0])&&!g)return{success:!1,payload:null,msg:"No user found"};let f=!1;if(S?.[0]&&!l&&p)f=!0;else if(S?.[0]&&!l)f=m===S[0].password;else if(S&&S[0]&&l&&c&&u){let e=S[0][u];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");f=r===c}if(!f)return{success:!1,msg:"Wrong password, no social login validity",payload:null};f&&l&&await n({queryString:`UPDATE users SET ${u} = ? WHERE email = ? OR username = ?`,queryValuesArray:["",r,t],database:o.replace(/[^a-z0-9_]/g,""),useLocal:_});let h=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),y={id:S[0].id,first_name:S[0].first_name,last_name:S[0].last_name,username:S[0].username,email:S[0].email,phone:S[0].phone,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:h,more_data:S[0].more_user_data,logged_in_status:!0,date:Date.now()},D={success:!0,msg:"Login Successful",payload:y,userId:S[0].id,csrf:h};return i&&Array.isArray(i)&&i.length>0&&i.forEach(e=>{y[e]=S[0][e]}),D}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},72047:(e,r,t)=>{let s=t(29021),n=t(33873),a=()=>{let e=n.resolve(process.cwd(),"./.tmp"),r=n.join(e,"logins");return{root:e,auth:r}},o=()=>{try{let e=a();return s.existsSync(e.root)||s.mkdirSync(e.root,{recursive:!0}),s.existsSync(e.auth)||s.mkdirSync(e.auth,{recursive:!0}),!0}catch(e){return console.log(`Error initializing Auth Files: ${e.message}`),!1}};r.grabAuthDirs=a,r.initAuthFiles=o,r.writeAuthFile=(e,r)=>{o();try{return s.writeFileSync(n.join(a().auth,e),r),!0}catch(e){return console.log(`Error writing Auth File: ${e.message}`),!1}},r.getAuthFile=e=>{try{let r=n.join(a().auth,e);return s.readFileSync(r,"utf-8")}catch(e){return console.log(`Error getting Auth File: ${e.message}`),null}},r.deleteAuthFile=e=>{try{return s.rmSync(n.join(a().auth,e))}catch(e){return console.log(`Error deleting Auth File: ${e.message}`),null}},r.checkAuthFile=e=>{try{return s.existsSync(n.join(a().auth,e))}catch(e){return console.log(`Error checking Auth File: ${e.message}`),!1}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},81630:e=>{e.exports=require("http")},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}}})},81725:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(81681),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:s,database:n,additionalFields:a,email_login:o,email_login_code:i,email_login_field:l,token:c,skipPassword:d}=e.body,_=e.headers.authorization,m=u()({key:_,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 g=s.email,f=s.username,S=s.password,y=`datasquirel_user_${m.user_id}_${n}`,D=await p()({database:y,email:g,username:f,password:S,skipPassword:d,encryptionKey:t,additionalFields:a,email_login:o,email_login_code:i,email_login_field:l,token:c});r.json(D)}catch(t){l()({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let m=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:s})},81681:(e,r,t)=>{let s=t(57638),n=t(14533);e.exports=async function({encryptionKey:e,email:r,username:t,password:a,database:o,additionalFields:i,email_login:l,email_login_code:c,email_login_field:u,token:d,skipPassword:p,social:_,useLocal:m}){if(r?.match(/ /)||t&&t?.match(/ /)||a&&a?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let g=a?n({encryptionKey:e,password:a}):null,f=await s({queryString:"SELECT * FROM users WHERE email = ? OR username = ?",queryValuesArray:[r,t],database:o.replace(/[^a-z0-9_]/g,""),useLocal:m});if((!f||!f[0])&&!_)return{success:!1,payload:null,msg:"No user found"};let S=!1;if(f?.[0]&&!l&&p)S=!0;else if(f?.[0]&&!l)S=g===f[0].password;else if(f&&f[0]&&l&&c&&u){let e=f[0][u];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");S=r===c}if(!S)return{success:!1,msg:"Wrong password, no social login validity",payload:null};S&&l&&await s({queryString:`UPDATE users SET ${u} = ? WHERE email = ? OR username = ?`,queryValuesArray:["",r,t],database:o.replace(/[^a-z0-9_]/g,""),useLocal:m});let y=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),D={id:f[0].id,first_name:f[0].first_name,last_name:f[0].last_name,username:f[0].username,email:f[0].email,phone:f[0].phone,social_id:f[0].social_id,image:f[0].image,image_thumbnail:f[0].image_thumbnail,verification_status:f[0].verification_status,social_login:f[0].social_login,social_platform:f[0].social_platform,csrf_k:y,more_data:f[0].more_user_data,logged_in_status:!0,date:Date.now()},E={success:!0,msg:"Login Successful",payload:D,userId:f[0].id,csrf:y};return i&&Array.isArray(i)&&i.length>0&&i.forEach(e=>{D[e]=f[0][e]}),E}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=81725);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=81725);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json index 302ec03..1da0f9a 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../.tmp/error.log","../../../../../../.tmp/sqlQuery.sql","../../../../../../.tmp/userLoginLogs.log","../../../../../../.tmp/wrt.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/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/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../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/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/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/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../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/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1614.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3460.js","../../../../chunks/3737.js","../../../../chunks/3932.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4333.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5664.js","../../../../chunks/5674.js","../../../../chunks/6521.js","../../../../chunks/7070.js","../../../../chunks/7640.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9600.js","../../../../chunks/9621.js","../../../../chunks/9732.js","../../../../chunks/9821.js","../../../../chunks/9914.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../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/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/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../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/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/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/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../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/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1614.js","../../../../chunks/2414.js","../../../../chunks/2451.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3460.js","../../../../chunks/3737.js","../../../../chunks/3932.js","../../../../chunks/4050.js","../../../../chunks/4312.js","../../../../chunks/4333.js","../../../../chunks/4385.js","../../../../chunks/45.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5264.js","../../../../chunks/5421.js","../../../../chunks/5664.js","../../../../chunks/5674.js","../../../../chunks/6521.js","../../../../chunks/7070.js","../../../../chunks/7640.js","../../../../chunks/8540.js","../../../../chunks/8613.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9600.js","../../../../chunks/9621.js","../../../../chunks/9732.js","../../../../chunks/9821.js","../../../../chunks/9914.js","../../../../webpack-api-runtime.js"]} \ 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 4a61b7d..3a4f04b 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,4 +1,4 @@ -"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")},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")},81630:e=>{e.exports=require("http")},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}}})},62553:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>g,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(29477),_=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:s,additionalFields:n}=e.body,a=e.headers.authorization,o=u()({key:a,database:s,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${o.user_id}_${s}`.replace(/[^a-z0-9_]/g,""),l=await _()({database:i,existingUser:t,additionalFields:n});r.json(l)}catch(t){l()({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:s})},29477:(e,r,t)=>{let s=t(44900),n=t(57638);t(21572),e.exports=async function({existingUser:e,database:r,additionalFields:t,useLocal:a}){let o=e?.id&&e.id.toString().match(/./)?a?await s("SELECT * FROM users WHERE id=?",[e.id.toString()]):await n({queryString:"SELECT * FROM users WHERE id=?",queryValuesArray:[e.id.toString()],database:r}):null;if(!o||!o[0])return{success:!1,payload:null,msg:"No user found"};let i=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),l={id:o[0].id,first_name:o[0].first_name,last_name:o[0].last_name,username:o[0].username,email:o[0].email,phone:o[0].phone,social_id:o[0].social_id,image:o[0].image,image_thumbnail:o[0].image_thumbnail,verification_status:o[0].verification_status,social_login:o[0].social_login,social_platform:o[0].social_platform,csrf_k:i,more_data:o[0].more_user_data,logged_in_status:!0,date:Date.now()};return t&&Array.isArray(t)&&t.length>0&&t.forEach(e=>{l[e]=o[0][e]}),{success:!0,msg:"Login Successful",payload:l,csrf:i}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 n=`🚀 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")},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")},81630:e=>{e.exports=require("http")},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}}})},62553:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>g,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(29477),_=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:s,additionalFields:n}=e.body,a=e.headers.authorization,o=u()({key:a,database:s,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${o.user_id}_${s}`.replace(/[^a-z0-9_]/g,""),l=await _()({database:i,existingUser:t,additionalFields:n});r.json(l)}catch(t){l()({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:s})},29477:(e,r,t)=>{t(44900);let s=t(57638);t(21572),e.exports=async function({existingUser:e,database:r,additionalFields:t,useLocal:n}){let a=e?.id&&e.id.toString().match(/./)?await s({queryString:"SELECT * FROM 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 o=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:o,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:o}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),_=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62553);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62553);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 79a25d5..16c453f 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 @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!t?.match(/^datasquirel$/),p=l?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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 l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93919);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),p=l?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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 l=n("aes-192-cbc",s(o,i,c),a.alloc(16,0));try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93919);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 7318b7a..13686f6 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")},81630:e=>{e.exports=require("http")},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}}})},34453:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(42363),p=t.n(d),_=t(2258);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:n,updatedUserId:a}=e.body,o=u()({key:t,database:n,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${o.user_id}_${n}`,l=(0,_.default)({userId:o.user_id}),c=l?.find(e=>e.dbFullName===i),d=await p()({dbFullName:i,payload:s,updatedUserId:a,dbSchema:c});r.json(d)}catch(t){l()({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:s})},42363:(e,r,t)=>{t(44900);let s=t(33364),n=t(20503),a=t(14533),o=t(57638);e.exports=async function({payload:e,dbFullName:r,updatedUserId:t,useLocal:i,dbSchema:l}){let c=await o({queryString:"SELECT * FROM users WHERE id = ?",queryValuesArray:[t],database:r,useLocal:i});if(!c?.[0])return{success:!1,msg:"User not found"};let u=(()=>{let r=Object.keys(e),t=(()=>{try{return l?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),s={};return r.forEach(r=>{let a=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let o=e[r];a?.encrypted&&(o=n({data:o})),s[r]=o}),s.password&&"string"==typeof s.password&&(s.password=a({password:s.password})),s})();return{success:!0,payload:await s({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:u,useLocal:i})}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let m=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?l:m?a:o,h=Object.keys(u),D=[],E=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"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"}}),D.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}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let b=`UPDATE ${c} SET ${D.join(",")} WHERE \`${p}\`=?`;return E.push(_),m?await y(b,E):await y({paradigm:r,database:t,queryString:b,queryValues:E})}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let s=t(48225),n=t(29021),a=t(33873);function o({userId:e}){try{let r=a.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 s({component:"grabUserSchemaData",message:e.message}),null}}},16570:e=>{e.exports={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"]}}},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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")},81630:e=>{e.exports=require("http")},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}}})},34453:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(48225),l=t.n(i),c=t(77619),u=t.n(c),d=t(42363),p=t.n(d),_=t(2258);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:n,updatedUserId:a}=e.body,o=u()({key:t,database:n,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");if(!o.full_access||!o.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${o.user_id}_${n}`,l=(0,_.default)({userId:o.user_id}),c=l?.find(e=>e.dbFullName===i),d=await p()({dbFullName:i,payload:s,updatedUserId:a,dbSchema:c});r.json(d)}catch(t){l()({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let f=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:s})},42363:(e,r,t)=>{let s=t(33364),n=t(20503),a=t(14533),o=t(57638);e.exports=async function({payload:e,dbFullName:r,updatedUserId:t,useLocal:i,dbSchema:l}){let c=await o({queryString:"SELECT * FROM users WHERE id = ?",queryValuesArray:[t],database:r,useLocal:i});if(!c?.[0])return{success:!1,msg:"User not found"};let u=(()=>{let r=Object.keys(e),t=(()=>{try{return l?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),s={};return r.forEach(r=>{let a=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let o=e[r];a?.encrypted&&(o=n({data:o})),s[r]=o}),s.password&&"string"==typeof s.password&&(s.password=a({password:s.password})),s})();return{success:!0,payload:await s({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:u,useLocal:i})}}},77619:(e,r,t)=>{let s=t(29021),n=t(72835);e.exports=({key:e,database:r,table:t,user_id:a})=>{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 i=n({encryptedString:e}),l=JSON.parse(i||""),c=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!c)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let u=l.target_database?.split(",").includes(String(r));if(u&&!l.target_table)return l;if(u&&!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}`),null}}},33364:(e,r,t)=>{let s=t(72583),n=t(16570),a=t(51348),o=t(21339),i=t(20503),l=t(44900);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:f,useLocal:g}){if(!u||!Object.keys(u).length)return null;let m=!!g||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?l:m?a:o,h=Object.keys(u),D=[],E=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;o?.richText&&(t=s(t,n)),o?.encrypted&&(t=i({data:t,encryptionKey:S,encryptionSalt:f})),"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"}}),D.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}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let b=`UPDATE ${c} SET ${D.join(",")} WHERE \`${p}\`=?`;return E.push(_),m?await y(b,E):await y({paradigm:r,database:t,queryString:b,queryValues:E})}e.exports=c},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2258:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let s=t(48225),n=t(29021),a=t(33873);function o({userId:e}){try{let r=a.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 s({component:"grabUserSchemaData",message:e.message}),null}}},16570:e=>{e.exports={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"]}}},6061:(e,r,t)=>{let s=t(72835),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({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"],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 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)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=34453);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339),i=t(44900);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i:d?a:o;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,l=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=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},20503:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=({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,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(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=n("aes-192-cbc",s(o,i,l),a.alloc(16,0));try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},14533:(e,r,t)=>{let{createHmac:s}=t(55511);e.exports=function({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=s("sha512",t);return n.update(e),n.digest("base64")}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=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:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},44900:(e,r,t)=>{let s=t(9973),n=t(21580);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:n()},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}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=34453);module.exports=t})(); \ 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 804f8f6..a0d8444 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 c8767ec..27d440e 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 ef639e4..f8a0ebf 100644 --- a/dsql-app/.local_dist/server/pages/create-account.js +++ b/dsql-app/.local_dist/server/pages/create-account.js @@ -1,4 +1,4 @@ -"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}}})},90467:(e,t,r)=>{r.r(t),r.d(t,{config:()=>b,default:()=>y,getServerSideProps:()=>D,getStaticPaths:()=>v,getStaticProps:()=>x,reportWebVitals:()=>N,routeModule:()=>O,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>L});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>h,default:()=>S,getServerSideProps:()=>E});var a=r(63865),n=r(9455),i=r(30671),o=r(49407),l=r(89600),c=r(8732),u=r(82015),d=r.n(u),p=r(71457),_=r(87472),m=r(70045);function g(e){let{query:t,invitingUser:r}=d().useContext(h);return(0,c.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,c.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,c.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:[r?.first_name&&(0,c.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,c.jsxs)("b",{children:[r.first_name," ",r.last_name," (",r.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,c.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,c.jsx)(m.A,{query:t})]})]})}r(20048),r(26123),r(67216),r(63715);var f=r(55966);r(6505);let h=d().createContext({});function S(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:t}),(0,c.jsx)("meta",{name:"description",content:r}),(0,c.jsx)(_.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[a,n]=d().useState(null);return e.query?.invite?(0,c.jsx)(f.A,{}):(0,c.jsx)(p.A,{head:s,children:(0,c.jsx)(h.Provider,{value:{user:a,query:e.query,invitingUser:e.invitingUser},children:(0,c.jsx)("main",{children:(0,c.jsx)(g,{})})})})}async function E({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let y=(0,i.M)(s,"default"),x=(0,i.M)(s,"getStaticProps"),v=(0,i.M)(s,"getStaticPaths"),D=(0,i.M)(s,"getServerSideProps"),b=(0,i.M)(s,"config"),N=(0,i.M)(s,"reportWebVitals"),L=(0,i.M)(s,"unstable_getStaticProps"),A=(0,i.M)(s,"unstable_getStaticPaths"),P=(0,i.M)(s,"unstable_getStaticParams"),R=(0,i.M)(s,"unstable_getServerProps"),j=(0,i.M)(s,"unstable_getServerSideProps"),O=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},55966:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);r(82015);var a=r(32415);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"})})]})})}},20048:(e,t,r)=>{r(81630);let s=r(67216),a=r(77463),n=r(29021),i=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},26123:(e,t,r)=>{let s=r(22373),a=r(67216),n=r(43290),i=r(88896);e.exports=async function({query:e,user:t,useLocal:r}){try{let s=r?i:a,{invite:o,database_access:l,priviledge:c,email:u}=e,d=[o,u],p=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",d);if(!p||!p[0])throw Error("No Invitation Found");let _=[o],m=await s("SELECT first_name,last_name,email FROM users WHERE id=?",_);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,t.id,u]);if(e?.[0])console.log("User already added");else{n({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:t.id,database_access:l,first_name:t.first_name,last_name:t.last_name,phone:t.phone,email:t.email,username:t.username,user_type:"admin",user_priviledge:c,image:t.image,image_thumbnail:t.image_thumbnail},useLocal:r});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,t.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(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=t;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=r;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=s}}},43290:(e,t,r)=>{let s=r(72583),a=r(67942);r(19760);let n=r(19760);r(27825);let i=r(67216),o=r(1231),l=r(53219),c=r(88896);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:m,update:g,encryptionKey:f,encryptionSalt:h,useLocal:S}){let E=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),y=S?c:E?i:o;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 s=E?await y(`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,[m]):await y({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,queryValues:[m]});if(s?.[0]&&!g)return null;if(s&&s[0]&&g)return await n({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,encryptionKey:f,encryptionSalt:h,identifierColumnName:_,identifierValue:m||""})}let x=Object.keys(d),v=[],D=[];for(let e=0;ee.fieldName==t):null,i=n&&n[0]?n[0]:null;if(null==r||void 0==r||i?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;i?.encrypted&&(r=l({data:r,encryptionKey:f,encryptionSalt:h}),console.log("DSQL: Encrypted value =>",r)),i?.richText&&(r=s(r,a)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),v.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?D.push(String(r)):D.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(v.push("`date_created`"),D.push(Date())),d?.date_created_code||(v.push("`date_created_code`"),D.push(Date.now())),d?.date_updated||(v.push("`date_updated`"),D.push(Date())),d?.date_updated_code||(v.push("`date_updated_code`"),D.push(Date.now()));let b=`INSERT INTO \`${u}\` (${v.join(",")}) VALUES (${D.map(()=>"?").join(",")})`;return E?await y(b,D):await y({paradigm:t,database:r,queryString:b,queryValues:D})}e.exports=u},19760:(e,t,r)=>{let s=r(72583),a=r(67942),n=r(67216),i=r(1231),o=r(53219),l=r(88896);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:m,encryptionSalt:g,useLocal:f}){if(!u||!Object.keys(u).length)return null;let h=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),S=f?l:h?n:i,E=Object.keys(u),y=[],x=[];for(let e=0;ee.fieldName===t):null,i=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;i?.richText&&(r=s(r,a)),i?.encrypted&&(r=o({data:r,encryptionKey:m,encryptionSalt:g})),"object"==typeof r&&(r=JSON.stringify(r)),i?.pattern&&!new RegExp(i.pattern,i.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"}}),y.push(`\`${t}\`=?`),"number"==typeof r?x.push(String(r)):x.push(r)}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 v=`UPDATE ${c} SET ${y.join(",")} WHERE \`${p}\`=?`;return x.push(_),h?await S(v,x):await S({paradigm:t,database:r,queryString:v,queryValues:x})}e.exports=c},67942:e=>{e.exports={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"]}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:n}){let i=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"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}}})},90467:(e,t,r)=>{r.r(t),r.d(t,{config:()=>b,default:()=>y,getServerSideProps:()=>v,getStaticPaths:()=>D,getStaticProps:()=>x,reportWebVitals:()=>N,routeModule:()=>O,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>L});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>S,default:()=>h,getServerSideProps:()=>E});var a=r(63865),n=r(9455),i=r(30671),o=r(49407),l=r(89600),c=r(8732),u=r(82015),d=r.n(u),p=r(71457),_=r(87472),m=r(70045);function g(e){let{query:t,invitingUser:r}=d().useContext(S);return(0,c.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,c.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,c.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:[r?.first_name&&(0,c.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,c.jsxs)("b",{children:[r.first_name," ",r.last_name," (",r.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,c.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,c.jsx)(m.A,{query:t})]})]})}r(20048),r(26123),r(67216),r(63715);var f=r(55966);r(6505);let S=d().createContext({});function h(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:t}),(0,c.jsx)("meta",{name:"description",content:r}),(0,c.jsx)(_.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[a,n]=d().useState(null);return e.query?.invite?(0,c.jsx)(f.A,{}):(0,c.jsx)(p.A,{head:s,children:(0,c.jsx)(S.Provider,{value:{user:a,query:e.query,invitingUser:e.invitingUser},children:(0,c.jsx)("main",{children:(0,c.jsx)(g,{})})})})}async function E({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let y=(0,i.M)(s,"default"),x=(0,i.M)(s,"getStaticProps"),D=(0,i.M)(s,"getStaticPaths"),v=(0,i.M)(s,"getServerSideProps"),b=(0,i.M)(s,"config"),N=(0,i.M)(s,"reportWebVitals"),L=(0,i.M)(s,"unstable_getStaticProps"),A=(0,i.M)(s,"unstable_getStaticPaths"),P=(0,i.M)(s,"unstable_getStaticParams"),R=(0,i.M)(s,"unstable_getServerProps"),j=(0,i.M)(s,"unstable_getServerSideProps"),O=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},55966:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);r(82015);var a=r(32415);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"})})]})})}},20048:(e,t,r)=>{r(81630);let s=r(67216),a=r(77463),n=r(29021),i=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},26123:(e,t,r)=>{let s=r(22373),a=r(67216),n=r(43290),i=r(88896);e.exports=async function({query:e,user:t,useLocal:r}){try{let s=r?i:a,{invite:o,database_access:l,priviledge:c,email:u}=e,d=[o,u],p=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",d);if(!p||!p[0])throw Error("No Invitation Found");let _=[o],m=await s("SELECT first_name,last_name,email FROM users WHERE id=?",_);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,t.id,u]);if(e?.[0])console.log("User already added");else{n({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:t.id,database_access:l,first_name:t.first_name,last_name:t.last_name,phone:t.phone,email:t.email,username:t.username,user_type:"admin",user_priviledge:c,image:t.image,image_thumbnail:t.image_thumbnail},useLocal:r});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,t.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=t;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=r;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),{keyCookieName:n,csrfCookieName:i+=s}}},43290:(e,t,r)=>{let s=r(72583),a=r(67942);r(19760);let n=r(19760);r(27825);let i=r(67216),o=r(1231),l=r(53219),c=r(88896);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:m,update:g,encryptionKey:f,encryptionSalt:S,useLocal:h}){let E=!!h||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),y=h?c:E?i:o;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 s=E?await y(`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,[m]):await y({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${u}\` WHERE \`${_}\`=?`,queryValues:[m]});if(s?.[0]&&!g)return null;if(s&&s[0]&&g)return await n({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:d,tableSchema:p,encryptionKey:f,encryptionSalt:S,identifierColumnName:_,identifierValue:m||""})}let x=Object.keys(d),D=[],v=[];for(let e=0;ee.fieldName==t):null,i=n&&n[0]?n[0]:null;if(null==r||void 0==r||i?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;i?.encrypted&&(r=l({data:r,encryptionKey:f,encryptionSalt:S}),console.log("DSQL: Encrypted value =>",r)),i?.richText&&(r=s(r,a)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),D.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?v.push(String(r)):v.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(D.push("`date_created`"),v.push(Date())),d?.date_created_code||(D.push("`date_created_code`"),v.push(Date.now())),d?.date_updated||(D.push("`date_updated`"),v.push(Date())),d?.date_updated_code||(D.push("`date_updated_code`"),v.push(Date.now()));let b=`INSERT INTO \`${u}\` (${D.join(",")}) VALUES (${v.map(()=>"?").join(",")})`;return E?await y(b,v):await y({paradigm:t,database:r,queryString:b,queryValues:v})}e.exports=u},19760:(e,t,r)=>{let s=r(72583),a=r(67942),n=r(67216),i=r(1231),o=r(53219),l=r(88896);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:m,encryptionSalt:g,useLocal:f}){if(!u||!Object.keys(u).length)return null;let S=!!f||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=f?l:S?n:i,E=Object.keys(u),y=[],x=[];for(let e=0;ee.fieldName===t):null,i=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;i?.richText&&(r=s(r,a)),i?.encrypted&&(r=o({data:r,encryptionKey:m,encryptionSalt:g})),"object"==typeof r&&(r=JSON.stringify(r)),i?.pattern&&!new RegExp(i.pattern,i.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"}}),y.push(`\`${t}\`=?`),"number"==typeof r?x.push(String(r)):x.push(r)}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 ${c} SET ${y.join(",")} WHERE \`${p}\`=?`;return x.push(_),S?await h(D,x):await h({paradigm:t,database:r,queryString:D,queryValues:x})}e.exports=c},67942:e=>{e.exports={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"]}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:n}){let i=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference.html b/dsql-app/.local_dist/server/pages/docs/api-reference.html index 096f21d..1fd157b 100644 --- a/dsql-app/.local_dist/server/pages/docs/api-reference.html +++ b/dsql-app/.local_dist/server/pages/docs/api-reference.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference/get.html b/dsql-app/.local_dist/server/pages/docs/api-reference/get.html index b5cabc4..678f9eb 100644 --- a/dsql-app/.local_dist/server/pages/docs/api-reference/get.html +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/get.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference/post.html b/dsql-app/.local_dist/server/pages/docs/api-reference/post.html index fc6ebb4..7c611dd 100644 --- a/dsql-app/.local_dist/server/pages/docs/api-reference/post.html +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/post.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference.html b/dsql-app/.local_dist/server/pages/docs/database-reference.html index 719ecda..917ffa7 100644 --- a/dsql-app/.local_dist/server/pages/docs/database-reference.html +++ b/dsql-app/.local_dist/server/pages/docs/database-reference.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html index 5feaf35..f56a8b8 100644 --- a/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html index 176bd9a..8447147 100644 --- a/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/getting-started.html b/dsql-app/.local_dist/server/pages/docs/getting-started.html index a40b0fc..e3696c0 100644 --- a/dsql-app/.local_dist/server/pages/docs/getting-started.html +++ b/dsql-app/.local_dist/server/pages/docs/getting-started.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference.html b/dsql-app/.local_dist/server/pages/docs/gui-reference.html index b5b8bb8..466d38f 100644 --- a/dsql-app/.local_dist/server/pages/docs/gui-reference.html +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html index 34103ab..5217a07 100644 --- a/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html index bda2cde..9e1a944 100644 --- a/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/quick-start.html b/dsql-app/.local_dist/server/pages/docs/quick-start.html index 342cd6f..8e81be8 100644 --- a/dsql-app/.local_dist/server/pages/docs/quick-start.html +++ b/dsql-app/.local_dist/server/pages/docs/quick-start.html @@ -1 +1 @@ -
\ No newline at end of file +
\ 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 b890044..96b9c35 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}}})},71956:(e,t,r)=>{r.r(t),r.d(t,{config:()=>k,default:()=>b,getServerSideProps:()=>N,getStaticPaths:()=>A,getStaticProps:()=>D,reportWebVitals:()=>R,routeModule:()=>$,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>L,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>O});var s={};r.r(s),r.d(s,{default:()=>j,getServerSideProps:()=>P});var n=r(63865),i=r(9455),a=r(30671),o=r(49407),l=r(89600),c=r(8732),u=r(82015),d=r.n(u);r(27912);var p=r(20048),m=r.n(p),f=r(32415),g=r(63715),S=r(77463),x=r.n(S),h=r(71457),_=r(22373),y=r.n(_),v=r(67216),E=r.n(v);function j({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)(f.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,g.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 P({req:e,res:t,query:r}){let s;let n=!1;try{s=await m()(e,t);let i=r?.token;if(i){let e=x()({encryptedString:i.toString()});if(e)try{s=JSON.parse(e)}catch(e){y()({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 E()(`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 E()(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),n=!0)}}catch(e){return y()({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 b=(0,a.M)(s,"default"),D=(0,a.M)(s,"getStaticProps"),A=(0,a.M)(s,"getStaticPaths"),N=(0,a.M)(s,"getServerSideProps"),k=(0,a.M)(s,"config"),R=(0,a.M)(s,"reportWebVitals"),O=(0,a.M)(s,"unstable_getStaticProps"),w=(0,a.M)(s,"unstable_getStaticPaths"),L=(0,a.M)(s,"unstable_getStaticParams"),M=(0,a.M)(s,"unstable_getServerProps"),I=(0,a.M)(s,"unstable_getServerSideProps"),$=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})},20048:(e,t,r)=>{r(81630);let s=r(67216),n=r(77463),i=r(29021),a=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},6505:e=>{e.exports=function(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=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),e?.database&&(i+=`${e.database}_`),{keyCookieName:n,csrfCookieName:i+=s}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,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 n=`🚀 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}}})},71956:(e,t,r)=>{r.r(t),r.d(t,{config:()=>k,default:()=>b,getServerSideProps:()=>N,getStaticPaths:()=>A,getStaticProps:()=>D,reportWebVitals:()=>R,routeModule:()=>$,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>O,unstable_getStaticProps:()=>L});var s={};r.r(s),r.d(s,{default:()=>j,getServerSideProps:()=>P});var n=r(63865),i=r(9455),a=r(30671),o=r(49407),l=r(89600),c=r(8732),u=r(82015),d=r.n(u);r(27912);var p=r(20048),m=r.n(p),f=r(32415),g=r(63715),S=r(77463),x=r.n(S),h=r(71457),_=r(22373),y=r.n(_),v=r(67216),E=r.n(v);function j({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)(f.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,g.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 P({req:e,res:t,query:r}){let s;let n=!1;try{s=await m()(e,t);let i=r?.token;if(i){let e=x()({encryptedString:i.toString()});if(e)try{s=JSON.parse(e)}catch(e){y()({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 E()(`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 E()(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),n=!0)}}catch(e){return y()({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 b=(0,a.M)(s,"default"),D=(0,a.M)(s,"getStaticProps"),A=(0,a.M)(s,"getStaticPaths"),N=(0,a.M)(s,"getServerSideProps"),k=(0,a.M)(s,"config"),R=(0,a.M)(s,"reportWebVitals"),L=(0,a.M)(s,"unstable_getStaticProps"),O=(0,a.M)(s,"unstable_getStaticPaths"),w=(0,a.M)(s,"unstable_getStaticParams"),M=(0,a.M)(s,"unstable_getServerProps"),I=(0,a.M)(s,"unstable_getServerSideProps"),$=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})},20048:(e,t,r)=>{r(81630);let s=r(67216),n=r(77463),i=r(29021),a=r(6505);async function o(e,t,r,o){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},6505:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:i,csrfCookieName:a+=s}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,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 n=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` 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 b427e27..b1cd05b 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 bcf1b9c..82bda7b 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},12037:(e,t,s)=>{s.r(t),s.d(t,{config:()=>q,default:()=>N,getServerSideProps:()=>L,getStaticPaths:()=>A,getStaticProps:()=>D,reportWebVitals:()=>O,routeModule:()=>Q,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>I});var r={};s.r(r),s.d(r,{default:()=>w,getServerSideProps:()=>E});var a=s(63865),n=s(9455),i=s(30671),o=s(49407),l=s(89600),c=s(8732),u=s(82015),d=s.n(u),p=s(27912),m=s.n(p),f=s(76601),x=s(63715);async function g({e,setAlert:t,setLoading:s,query:r}){e.preventDefault(),s(!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"),s(!1);return}if(n?.value===""){t(!1),n.classList.add("warning"),t(!0),s(!1);return}a.classList.remove("warning"),n.classList.remove("warning"),t(!1);let i={email:a.value,password:n.value,query:r};(0,x.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),s(!1))})}var h=s(32415),v=s(72414);let S=d().createContext({});function j({user:e,query:t}){let[s,r]=(0,u.useState)(null),[a,n]=(0,u.useState)(!1);return(0,c.jsxs)(S.Provider,{value:{loading:a,setLoading:n,alert:s,setAlert:r,user:e},children:[(0,c.jsx)(v.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)(h.A,{}),s&&(0,c.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:s}),(0,c.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{g({e,setAlert:r,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=>{s&&r(!1)}}),(0,c.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{s&&r(!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 y=s(20048),_=s.n(y),P=s(93353),b=s(55966);function w(e){return e.query.invite&&e.user?(0,c.jsx)(b.A,{}):(0,c.jsxs)(d().Fragment,{children:[(0,c.jsxs)(m(),{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)(P.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:s}){let r=await _()(e,t);return r?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:r,query:s}}}let N=(0,i.M)(r,"default"),D=(0,i.M)(r,"getStaticProps"),A=(0,i.M)(r,"getStaticPaths"),L=(0,i.M)(r,"getServerSideProps"),q=(0,i.M)(r,"config"),O=(0,i.M)(r,"reportWebVitals"),I=(0,i.M)(r,"unstable_getStaticProps"),M=(0,i.M)(r,"unstable_getStaticPaths"),R=(0,i.M)(r,"unstable_getStaticParams"),T=(0,i.M)(r,"unstable_getServerProps"),k=(0,i.M)(r,"unstable_getServerSideProps"),Q=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:r})},55966:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);s(82015);var a=s(32415);function n(){return(0,r.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,r.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,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,r.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,r.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},20048:(e,t,s)=>{s(81630);let r=s(67216),a=s(77463),n=s(29021),i=s(6505);async function o(e,t,s,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=t;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:a}=s(55511),{Buffer:n}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=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=a("aes-192-cbc",r(i,o,l),n.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),a=s(31976),n=r({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:a()}});async function i(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(e){return(0,r.jsxs)(a.Html,{lang:"en",children:[(0,r.jsxs)(a.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(a.Main,{}),(0,r.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600,2414],()=>s(12037));module.exports=r})(); \ 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},12037:(e,t,s)=>{s.r(t),s.d(t,{config:()=>q,default:()=>N,getServerSideProps:()=>L,getStaticPaths:()=>A,getStaticProps:()=>D,reportWebVitals:()=>O,routeModule:()=>Q,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>I});var r={};s.r(r),s.d(r,{default:()=>w,getServerSideProps:()=>E});var n=s(63865),a=s(9455),i=s(30671),o=s(49407),l=s(89600),c=s(8732),u=s(82015),d=s.n(u),p=s(27912),m=s.n(p),f=s(76601),x=s(63715);async function g({e,setAlert:t,setLoading:s,query:r}){e.preventDefault(),s(!0);let n=e.target["email-or-username-input"],a=e.target.password;if(n?.value===""&&a?.value===""){n.classList.add("warning"),a.classList.add("warning"),t("No Email or Password Provided"),s(!1);return}if(a?.value===""){t(!1),a.classList.add("warning"),t(!0),s(!1);return}n.classList.remove("warning"),a.classList.remove("warning"),t(!1);let i={email:n.value,password:a.value,query:r};(0,x.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),s(!1))})}var h=s(32415),v=s(72414);let S=d().createContext({});function _({user:e,query:t}){let[s,r]=(0,u.useState)(null),[n,a]=(0,u.useState)(!1);return(0,c.jsxs)(S.Provider,{value:{loading:n,setLoading:a,alert:s,setAlert:r,user:e},children:[(0,c.jsx)(v.A,{user:e,userType:"admin",setLoading:a}),(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:[n&&(0,c.jsx)(h.A,{}),s&&(0,c.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:s}),(0,c.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{g({e,setAlert:r,setLoading:a,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=>{s&&r(!1)}}),(0,c.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{s&&r(!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 j=s(20048),y=s.n(j),P=s(93353),b=s(55966);function w(e){return e.query.invite&&e.user?(0,c.jsx)(b.A,{}):(0,c.jsxs)(d().Fragment,{children:[(0,c.jsxs)(m(),{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)(P.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:s}){let r=await y()(e,t);return r?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:r,query:s}}}let N=(0,i.M)(r,"default"),D=(0,i.M)(r,"getStaticProps"),A=(0,i.M)(r,"getStaticPaths"),L=(0,i.M)(r,"getServerSideProps"),q=(0,i.M)(r,"config"),O=(0,i.M)(r,"reportWebVitals"),I=(0,i.M)(r,"unstable_getStaticProps"),M=(0,i.M)(r,"unstable_getStaticPaths"),R=(0,i.M)(r,"unstable_getStaticParams"),T=(0,i.M)(r,"unstable_getServerProps"),k=(0,i.M)(r,"unstable_getServerSideProps"),Q=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:r})},55966:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);s(82015);var n=s(32415);function a(){return(0,r.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,r.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,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,r.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,r.jsx)(n.A,{width:"25px",position:"relative"})})]})})}},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),a=s(29021),i=s(6505);async function o(e,t,s,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:a,csrfCookieName:i+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=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=n("aes-192-cbc",r(i,o,l),a.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),a=r({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:n()}});async function i(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600,2414],()=>s(12037));module.exports=r})(); \ 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 a037305..96c0321 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},9247:(e,t,s)=>{s.r(t),s.d(t,{config:()=>D,default:()=>y,getServerSideProps:()=>b,getStaticPaths:()=>E,getStaticProps:()=>j,reportWebVitals:()=>A,routeModule:()=>k,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>M,unstable_getStaticParams:()=>N,unstable_getStaticPaths:()=>O,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>v});var n=s(63865),a=s(9455),o=s(30671),i=s(49407),c=s(89600),l=s(8732),u=s(82015),p=s.n(u),m=s(27912),d=s.n(m),g=s(29021),f=s.n(g);s(63715),s(76601);var _=s(32415),h=s(6505),x=s.n(h);let S=s(20048);function P({user:e,query:t}){let s=(0,l.jsxs)(p().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)(p().Fragment,{children:[(0,l.jsx)(d(),{children:s}),(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 v({req:e,res:t,query:s}){let r=await S(e,t);if(r){console.log(r.csrf_k);try{let e=process.env.DSQL_USER_LOGIN_KEYS_PATH,t=`${e}/${r.csrf_k}`;console.log("allowedAuthKeyPath",t),f().unlinkSync(t)}catch(e){console.log(`Logout API error: ${e.message}`)}}let{keyCookieName:n,csrfCookieName:a}=x()();return t.setHeader("Set-Cookie",[`${n}=none;max-age=0`,`${a}=null;max-age=0`]),{props:{user:r,logged_out:!0,query:s}}}let y=(0,o.M)(r,"default"),j=(0,o.M)(r,"getStaticProps"),E=(0,o.M)(r,"getStaticPaths"),b=(0,o.M)(r,"getServerSideProps"),D=(0,o.M)(r,"config"),A=(0,o.M)(r,"reportWebVitals"),L=(0,o.M)(r,"unstable_getStaticProps"),O=(0,o.M)(r,"unstable_getStaticPaths"),N=(0,o.M)(r,"unstable_getStaticParams"),I=(0,o.M)(r,"unstable_getServerProps"),M=(0,o.M)(r,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/logout",pathname:"/logout",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:r})},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),a=s(29021),o=s(6505);async function i(e,t,s,i){let{keyCookieName:c,csrfCookieName:l}=o();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},76601:(e,t,s)=>{s.d(t,{A:()=>r});async function r(){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)}}},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||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 l=n("aes-192-cbc",r(o,i,c),a.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),a=r({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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(9247));module.exports=r})(); \ 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},9247:(e,t,s)=>{s.r(t),s.d(t,{config:()=>b,default:()=>y,getServerSideProps:()=>D,getStaticPaths:()=>E,getStaticProps:()=>j,reportWebVitals:()=>A,routeModule:()=>k,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>M,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>v});var n=s(63865),o=s(9455),a=s(30671),i=s(49407),c=s(89600),l=s(8732),u=s(82015),p=s.n(u),m=s(27912),d=s.n(m),g=s(29021),_=s.n(g);s(63715),s(76601);var f=s(32415),h=s(6505),S=s.n(h);let x=s(20048);function P({user:e,query:t}){let s=(0,l.jsxs)(p().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)(p().Fragment,{children:[(0,l.jsx)(d(),{children:s}),(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)(f.A,{position:"relative",width:"20px"})]})})]})}async function v({req:e,res:t,query:s}){let r=await x(e,t);if(r){console.log(r.csrf_k);try{let e=process.env.DSQL_USER_LOGIN_KEYS_PATH,t=`${e}/${r.csrf_k}`;console.log("allowedAuthKeyPath",t),_().unlinkSync(t)}catch(e){console.log(`Logout API error: ${e.message}`)}}let{keyCookieName:n,csrfCookieName:o}=S()();return t.setHeader("Set-Cookie",[`${n}=none;max-age=0`,`${o}=null;max-age=0`]),{props:{user:r,logged_out:!0,query:s}}}let y=(0,a.M)(r,"default"),j=(0,a.M)(r,"getStaticProps"),E=(0,a.M)(r,"getStaticPaths"),D=(0,a.M)(r,"getServerSideProps"),b=(0,a.M)(r,"config"),A=(0,a.M)(r,"reportWebVitals"),L=(0,a.M)(r,"unstable_getStaticProps"),N=(0,a.M)(r,"unstable_getStaticPaths"),O=(0,a.M)(r,"unstable_getStaticParams"),I=(0,a.M)(r,"unstable_getServerProps"),M=(0,a.M)(r,"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:r})},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),o=s(29021),a=s(6505);async function i(e,t,s,i){let{keyCookieName:c,csrfCookieName:l}=a();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!o.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},76601:(e,t,s)=>{s.d(t,{A:()=>r});async function r(){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)}}},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:o,csrfCookieName:a+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||process.env.DSQL_ENCRYPTION_SALT,c=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=n("aes-192-cbc",r(a,i,c),o.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),o=r({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:n()}});async function a(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var r=s(8732);s(82015);var n=s(20883);function o(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(9247));module.exports=r})(); \ 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 4596c25..cff1521 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 0ce15ab..0e28ecd 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 c47d8a3..395b196 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}}})},75370:(e,t,r)=>{r.r(t),r.d(t,{config:()=>O,default:()=>A,getServerSideProps:()=>L,getStaticPaths:()=>N,getStaticProps:()=>R,reportWebVitals:()=>I,routeModule:()=>C,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>$});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>E,default:()=>b,getServerSideProps:()=>D});var n=r(63865),a=r(9455),o=r(30671),i=r(49407),l=r(89600),c=r(8732),u=r(82015),p=r.n(u),d=r(71457),m=r(87472),g=r(32415),f=r(20048),h=r.n(f),S=r(63715),x=r(13002),_=r(77463),P=r.n(_),y=r(22373),w=r.n(y),v=r(27825),j=r.n(v);let E=p().createContext({});function b(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",n=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:r}),(0,c.jsx)("meta",{name:"description",content:s}),(0,c.jsx)(m.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,o]=p().useState(!1),[i,l]=p().useState(!1);return(0,c.jsx)(d.A,{head:n,user:e.user,children:(0,c.jsx)(E.Provider,{value:{user:e.user},children:(0,c.jsx)("main",{children:(0,c.jsxs)("section",{children:[a&&(0,c.jsx)(g.A,{}),(0,c.jsx)("div",{className:"main-container flex-col items-start",children:i?(0,c.jsx)(x.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,c.jsxs)(p().Fragment,{children:[(0,c.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,c.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,c.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,S.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{o(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&l(!0)})},children:[(0,c.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,c.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,S.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,c.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function D({req:e,res:t,query:r}){let s=await h()(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let n=null;try{let e=P()({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 w()({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 A=(0,o.M)(s,"default"),R=(0,o.M)(s,"getStaticProps"),N=(0,o.M)(s,"getStaticPaths"),L=(0,o.M)(s,"getServerSideProps"),O=(0,o.M)(s,"config"),I=(0,o.M)(s,"reportWebVitals"),$=(0,o.M)(s,"unstable_getStaticProps"),q=(0,o.M)(s,"unstable_getStaticPaths"),M=(0,o.M)(s,"unstable_getStaticParams"),T=(0,o.M)(s,"unstable_getServerProps"),k=(0,o.M)(s,"unstable_getServerSideProps"),C=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:l.default,Document:i.default},userland:s})},13002:(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)},20048:(e,t,r)=>{r(81630);let s=r(67216),n=r(77463),a=r(29021),o=r(6505);async function i(e,t,r,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},6505:e=>{e.exports=function(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=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=r;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=s}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,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 n=`🚀 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}}})},75370:(e,t,r)=>{r.r(t),r.d(t,{config:()=>O,default:()=>b,getServerSideProps:()=>L,getStaticPaths:()=>R,getStaticProps:()=>N,reportWebVitals:()=>I,routeModule:()=>C,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>$,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>q});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>E,default:()=>D,getServerSideProps:()=>A});var n=r(63865),a=r(9455),o=r(30671),i=r(49407),l=r(89600),c=r(8732),u=r(82015),p=r.n(u),d=r(71457),m=r(87472),g=r(32415),f=r(20048),h=r.n(f),S=r(63715),x=r(13002),_=r(77463),P=r.n(_),y=r(22373),v=r.n(y),w=r(27825),j=r.n(w);let E=p().createContext({});function D(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",n=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:r}),(0,c.jsx)("meta",{name:"description",content:s}),(0,c.jsx)(m.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,o]=p().useState(!1),[i,l]=p().useState(!1);return(0,c.jsx)(d.A,{head:n,user:e.user,children:(0,c.jsx)(E.Provider,{value:{user:e.user},children:(0,c.jsx)("main",{children:(0,c.jsxs)("section",{children:[a&&(0,c.jsx)(g.A,{}),(0,c.jsx)("div",{className:"main-container flex-col items-start",children:i?(0,c.jsx)(x.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,c.jsxs)(p().Fragment,{children:[(0,c.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,c.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,c.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,S.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{o(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&l(!0)})},children:[(0,c.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,c.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,S.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,c.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function A({req:e,res:t,query:r}){let s=await h()(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let n=null;try{let e=P()({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 v()({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 b=(0,o.M)(s,"default"),N=(0,o.M)(s,"getStaticProps"),R=(0,o.M)(s,"getStaticPaths"),L=(0,o.M)(s,"getServerSideProps"),O=(0,o.M)(s,"config"),I=(0,o.M)(s,"reportWebVitals"),q=(0,o.M)(s,"unstable_getStaticProps"),M=(0,o.M)(s,"unstable_getStaticPaths"),$=(0,o.M)(s,"unstable_getStaticParams"),T=(0,o.M)(s,"unstable_getServerProps"),k=(0,o.M)(s,"unstable_getServerSideProps"),C=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:l.default,Document:i.default},userland:s})},13002:(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)},20048:(e,t,r)=>{r(81630);let s=r(67216),n=r(77463),a=r(29021),o=r(6505);async function i(e,t,r,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},6505:e=>{e.exports=function(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=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=r;let o=t;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=s}}},22373:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,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 n=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} 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 ad1172e..646baf7 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},24952:(e,t,s)=>{s.r(t),s.d(t,{config:()=>N,default:()=>E,getServerSideProps:()=>A,getStaticPaths:()=>D,getStaticProps:()=>b,reportWebVitals:()=>k,routeModule:()=>q,unstable_getServerProps:()=>O,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{SendPassResetContext:()=>P,default:()=>j,getServerSideProps:()=>y});var a=s(63865),n=s(9455),i=s(30671),o=s(49407),l=s(89600),c=s(8732),u=s(82015),d=s.n(u),p=s(71457),m=s(87472),f=s(32415),h=s(20048),g=s.n(h),x=s(63715),S=s(13002);let _=(0,s(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 v({message:e}){return(0,c.jsxs)("div",{className:"info gray",children:[(0,c.jsx)(_,{}),(0,c.jsx)("span",{className:"font-normal",children:e})]})}let P=d().createContext({});function j(e){let t="Cloudbased SQL data management system | Datasquirel",s="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.",r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:t}),(0,c.jsx)("meta",{name:"description",content:s}),(0,c.jsx)(m.A,{pageTitle:t,pageDescription:s,pagePathname:"/"})]}),[a,n]=d().useState(!1),[i,o]=d().useState(!1);return(0,c.jsx)(p.A,{head:r,user:e.user,children:(0,c.jsx)(P.Provider,{value:{user:e.user},children:(0,c.jsx)("main",{children:(0,c.jsxs)("section",{children:[a&&(0,c.jsx)(f.A,{}),i?(0,c.jsx)(S.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,c.jsx)("div",{className:"paper",children:(0,c.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,c.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,c.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,c.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,x.A)(`/api/sendPasswordResetLink?email=${t}`).then(e=>{console.log(e),setTimeout(()=>{n(!1)},500),e.success&&o(!0)})},children:[(0,c.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,c.jsx)("button",{children:"Send password reset Email"}),(0,c.jsx)(v,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function y({req:e,res:t}){let s=await g()(e,t);return s?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:s}}}let E=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),D=(0,i.M)(r,"getStaticPaths"),A=(0,i.M)(r,"getServerSideProps"),N=(0,i.M)(r,"config"),k=(0,i.M)(r,"reportWebVitals"),L=(0,i.M)(r,"unstable_getStaticProps"),w=(0,i.M)(r,"unstable_getStaticPaths"),M=(0,i.M)(r,"unstable_getStaticParams"),O=(0,i.M)(r,"unstable_getServerProps"),I=(0,i.M)(r,"unstable_getServerSideProps"),q=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:r})},13002:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({message:e,className:t}){return(0,r.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,r.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}s(82015)},20048:(e,t,s)=>{s(81630);let r=s(67216),a=s(77463),n=s(29021),i=s(6505);async function o(e,t,s,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=t;e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),a+=s;let n=t;return e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),{keyCookieName:a,csrfCookieName:n+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:a}=s(55511),{Buffer:n}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=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=a("aes-192-cbc",r(i,o,l),n.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),a=s(31976),n=r({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:a()}});async function i(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(e){return(0,r.jsxs)(a.Html,{lang:"en",children:[(0,r.jsxs)(a.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(a.Main,{}),(0,r.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(24952));module.exports=r})(); \ 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},24952:(e,t,s)=>{s.r(t),s.d(t,{config:()=>N,default:()=>E,getServerSideProps:()=>A,getStaticPaths:()=>b,getStaticProps:()=>D,reportWebVitals:()=>k,routeModule:()=>q,unstable_getServerProps:()=>O,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{SendPassResetContext:()=>P,default:()=>j,getServerSideProps:()=>y});var a=s(63865),n=s(9455),i=s(30671),o=s(49407),l=s(89600),c=s(8732),u=s(82015),d=s.n(u),p=s(71457),m=s(87472),f=s(32415),h=s(20048),g=s.n(h),x=s(63715),S=s(13002);let _=(0,s(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 v({message:e}){return(0,c.jsxs)("div",{className:"info gray",children:[(0,c.jsx)(_,{}),(0,c.jsx)("span",{className:"font-normal",children:e})]})}let P=d().createContext({});function j(e){let t="Cloudbased SQL data management system | Datasquirel",s="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.",r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:t}),(0,c.jsx)("meta",{name:"description",content:s}),(0,c.jsx)(m.A,{pageTitle:t,pageDescription:s,pagePathname:"/"})]}),[a,n]=d().useState(!1),[i,o]=d().useState(!1);return(0,c.jsx)(p.A,{head:r,user:e.user,children:(0,c.jsx)(P.Provider,{value:{user:e.user},children:(0,c.jsx)("main",{children:(0,c.jsxs)("section",{children:[a&&(0,c.jsx)(f.A,{}),i?(0,c.jsx)(S.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,c.jsx)("div",{className:"paper",children:(0,c.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,c.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,c.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,c.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,x.A)(`/api/sendPasswordResetLink?email=${t}`).then(e=>{console.log(e),setTimeout(()=>{n(!1)},500),e.success&&o(!0)})},children:[(0,c.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,c.jsx)("button",{children:"Send password reset Email"}),(0,c.jsx)(v,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function y({req:e,res:t}){let s=await g()(e,t);return s?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:s}}}let E=(0,i.M)(r,"default"),D=(0,i.M)(r,"getStaticProps"),b=(0,i.M)(r,"getStaticPaths"),A=(0,i.M)(r,"getServerSideProps"),N=(0,i.M)(r,"config"),k=(0,i.M)(r,"reportWebVitals"),L=(0,i.M)(r,"unstable_getStaticProps"),w=(0,i.M)(r,"unstable_getStaticPaths"),M=(0,i.M)(r,"unstable_getStaticParams"),O=(0,i.M)(r,"unstable_getServerProps"),I=(0,i.M)(r,"unstable_getServerSideProps"),q=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:r})},13002:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({message:e,className:t}){return(0,r.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,r.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}s(82015)},20048:(e,t,s)=>{s(81630);let r=s(67216),a=s(77463),n=s(29021),i=s(6505);async function o(e,t,s,o){let{keyCookieName:l,csrfCookieName:c}=i();if(!e.cookies?.[l]?.match(/./))return null;let u=a({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=t;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=s;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),{keyCookieName:n,csrfCookieName:i+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:a}=s(55511),{Buffer:n}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=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=a("aes-192-cbc",r(i,o,l),n.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),a=s(31976),n=r({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:a()}});async function i(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(e){return(0,r.jsxs)(a.Html,{lang:"en",children:[(0,r.jsxs)(a.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(a.Main,{}),(0,r.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(24952));module.exports=r})(); \ 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 f5441ea..93d7cd4 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},80268:(e,t,s)=>{s.r(t),s.d(t,{config:()=>D,default:()=>j,getServerSideProps:()=>b,getStaticPaths:()=>E,getStaticProps:()=>P,reportWebVitals:()=>A,routeModule:()=>k,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>N,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{default:()=>_,getServerSideProps:()=>v});var n=s(63865),a=s(9455),o=s(30671),i=s(49407),l=s(89600),c=s(8732);s(82015);var u=s(27912),p=s.n(u),d=s(93615),m=s.n(d),f=s(63715),h=s(20048),x=s.n(h),g=s(72377),S=s.n(g);function _({user:e}){let t=(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)(p(),{children:t}),(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)(y,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,f.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 v({req:e,res:t,query:s}){let r=await x()(e,t,!0);S()(r)&&console.log("Admin User Detected ...");let n=await m()(e);return n?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:n}}}function y(){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 j=(0,o.M)(r,"default"),P=(0,o.M)(r,"getStaticProps"),E=(0,o.M)(r,"getStaticPaths"),b=(0,o.M)(r,"getServerSideProps"),D=(0,o.M)(r,"config"),A=(0,o.M)(r,"reportWebVitals"),L=(0,o.M)(r,"unstable_getStaticProps"),w=(0,o.M)(r,"unstable_getStaticPaths"),N=(0,o.M)(r,"unstable_getStaticParams"),I=(0,o.M)(r,"unstable_getServerProps"),O=(0,o.M)(r,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:i.default},userland:r})},93615:(e,t,s)=>{let{IncomingMessage:r}=s(81630),n=s(77463),a=s(6505);e.exports=async function(e){let{keyCookieName:t,csrfCookieName:s}=a(),r=`${t}_su`;if(!e.cookies?.[r])return console.log("No auth key cookie found"),null;let o=n({encryptedString:e.cookies[r]});if(!o)return console.log("No user payload found"),null;let i=JSON.parse(o);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}},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),a=s(29021),o=s(6505);async function i(e,t,s,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},72377:e=>{e.exports=function(e,t){return t?e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")&&"true":e?.id&&"1"==String(e?.id)&&"true"}},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||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("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",r(o,i,l),a.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),a=r({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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(80268));module.exports=r})(); \ 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},80268:(e,t,s)=>{s.r(t),s.d(t,{config:()=>b,default:()=>j,getServerSideProps:()=>D,getStaticPaths:()=>E,getStaticProps:()=>P,reportWebVitals:()=>A,routeModule:()=>q,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{default:()=>_,getServerSideProps:()=>v});var n=s(63865),a=s(9455),o=s(30671),i=s(49407),l=s(89600),c=s(8732);s(82015);var u=s(27912),p=s.n(u),d=s(93615),m=s.n(d),f=s(63715),h=s(20048),x=s.n(h),S=s(72377),g=s.n(S);function _({user:e}){let t=(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)(p(),{children:t}),(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)(y,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,f.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 v({req:e,res:t,query:s}){let r=await x()(e,t,!0);g()(r)&&console.log("Admin User Detected ...");let n=await m()(e);return n?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:n}}}function y(){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 j=(0,o.M)(r,"default"),P=(0,o.M)(r,"getStaticProps"),E=(0,o.M)(r,"getStaticPaths"),D=(0,o.M)(r,"getServerSideProps"),b=(0,o.M)(r,"config"),A=(0,o.M)(r,"reportWebVitals"),L=(0,o.M)(r,"unstable_getStaticProps"),N=(0,o.M)(r,"unstable_getStaticPaths"),w=(0,o.M)(r,"unstable_getStaticParams"),I=(0,o.M)(r,"unstable_getServerProps"),O=(0,o.M)(r,"unstable_getServerSideProps"),q=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:i.default},userland:r})},93615:(e,t,s)=>{let{IncomingMessage:r}=s(81630),n=s(77463),a=s(6505);e.exports=async function(e){let{keyCookieName:t,csrfCookieName:s}=a(),r=`${t}_su`;if(!e.cookies?.[r])return console.log("No auth key cookie found"),null;let o=n({encryptedString:e.cookies[r]});if(!o)return console.log("No user payload found"),null;let i=JSON.parse(o);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}},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),a=s(29021),o=s(6505);async function i(e,t,s,i){let{keyCookieName:l,csrfCookieName:c}=o();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${d}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=i},72377:e=>{e.exports=function(e,t){return t?e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")&&"true":e?.id&&"1"==String(e?.id)&&"true"}},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let o=t;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:o+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=s||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("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",r(o,i,l),a.alloc(16,0));try{let t=c.update(e,"hex","utf8");return t+=c.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),a=r({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:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(80268));module.exports=r})(); \ 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 fdf66bf..d8c30d7 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 5358d13..0ceb308 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},76048:(e,t,s)=>{s.r(t),s.d(t,{config:()=>D,default:()=>v,getServerSideProps:()=>y,getStaticPaths:()=>E,getStaticProps:()=>P,reportWebVitals:()=>A,routeModule:()=>I,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>N});var r={};s.r(r),s.d(r,{default:()=>b,getServerSideProps:()=>j});var n=s(63865),a=s(9455),i=s(30671),o=s(49407),c=s(89600),l=s(8732),u=s(82015),p=s.n(u),m=s(32415),d=s(87472),x=s(20048),h=s.n(x),f=s(63715),g=s(71457),S=s(67216),_=s.n(S);function b({user:e,email:t,productionEnvironment:s,existingAlerts:r}){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)(g.A,{head:i,user:e,productionEnvironment:s,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:s=>{s.preventDefault(),c(!0);let r=s.target;(0,f.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:r.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:!!r,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:s}){let r=process.env.DSQL_HOST_ENV,n=await h()(e,t),a=s.email?s.email:n?.email?n.email:null,i=await _()(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:n,email:a,productionEnvironment:r,existingAlerts:!i[0]}}}let v=(0,i.M)(r,"default"),P=(0,i.M)(r,"getStaticProps"),E=(0,i.M)(r,"getStaticPaths"),y=(0,i.M)(r,"getServerSideProps"),D=(0,i.M)(r,"config"),A=(0,i.M)(r,"reportWebVitals"),N=(0,i.M)(r,"unstable_getStaticProps"),L=(0,i.M)(r,"unstable_getStaticPaths"),O=(0,i.M)(r,"unstable_getStaticParams"),M=(0,i.M)(r,"unstable_getServerProps"),k=(0,i.M)(r,"unstable_getServerSideProps"),I=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:r})},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),a=s(29021),i=s(6505);async function o(e,t,s,o){let{keyCookieName:c,csrfCookieName:l}=i();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=t;e?.userId&&(n+=`user_${e.userId}_`),e?.database&&(n+=`${e.database}_`),n+=s;let a=t;return e?.userId&&(a+=`user_${e.userId}_`),e?.database&&(a+=`${e.database}_`),{keyCookieName:n,csrfCookieName:a+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,c=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=n("aes-192-cbc",r(i,o,c),a.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),a=r({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:n()}});async function i(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(76048));module.exports=r})(); \ 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,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},76048:(e,t,s)=>{s.r(t),s.d(t,{config:()=>D,default:()=>j,getServerSideProps:()=>y,getStaticPaths:()=>E,getStaticProps:()=>P,reportWebVitals:()=>A,routeModule:()=>I,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>N});var r={};s.r(r),s.d(r,{default:()=>b,getServerSideProps:()=>v});var n=s(63865),a=s(9455),i=s(30671),o=s(49407),c=s(89600),l=s(8732),u=s(82015),p=s.n(u),m=s(32415),d=s(87472),x=s(20048),h=s.n(x),f=s(63715),_=s(71457),g=s(67216),S=s.n(g);function b({user:e,email:t,productionEnvironment:s,existingAlerts:r}){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)(_.A,{head:i,user:e,productionEnvironment:s,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:s=>{s.preventDefault(),c(!0);let r=s.target;(0,f.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:r.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:!!r,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 v({req:e,res:t,query:s}){let r=process.env.DSQL_HOST_ENV,n=await h()(e,t),a=s.email?s.email:n?.email?n.email:null,i=await S()(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:n,email:a,productionEnvironment:r,existingAlerts:!i[0]}}}let j=(0,i.M)(r,"default"),P=(0,i.M)(r,"getStaticProps"),E=(0,i.M)(r,"getStaticPaths"),y=(0,i.M)(r,"getServerSideProps"),D=(0,i.M)(r,"config"),A=(0,i.M)(r,"reportWebVitals"),N=(0,i.M)(r,"unstable_getStaticProps"),L=(0,i.M)(r,"unstable_getStaticPaths"),O=(0,i.M)(r,"unstable_getStaticParams"),M=(0,i.M)(r,"unstable_getServerProps"),k=(0,i.M)(r,"unstable_getServerSideProps"),I=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:r})},20048:(e,t,s)=>{s(81630);let r=s(67216),n=s(77463),a=s(29021),i=s(6505);async function o(e,t,s,o){let{keyCookieName:c,csrfCookieName:l}=i();if(!e.cookies?.[c]?.match(/./))return null;let u=n({encryptedString:e.cookies[c]});if(!u)return null;let p=JSON.parse(u);if(!p.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${p.csrf_k}`)))return null;let m=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!m)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${m}/${p.csrf_k}`))return null;if(0==p.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${p.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return p?.date&&Date.now()-p.date>6048e5?null:p}e.exports=o},6505:e=>{e.exports=function(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",r=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=e?.database||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:a,csrfCookieName:i+=r}}},77463:(e,t,s)=>{let{scryptSync:r,createDecipheriv:n}=s(55511),{Buffer:a}=s(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,c=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=n("aes-192-cbc",r(i,o,c),a.alloc(16,0));try{let t=l.update(e,"hex","utf8");return t+=l.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},67216:(e,t,s)=>{let r=s(9973),n=s(31976),a=r({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:n()}});async function i(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(76048));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/Nq-wCyHRgv6y1x0kf3WAs/_buildManifest.js b/dsql-app/.local_dist/static/HcU1grNdeICz9zVVD_7aa/_buildManifest.js similarity index 98% rename from dsql-app/.local_dist/static/Nq-wCyHRgv6y1x0kf3WAs/_buildManifest.js rename to dsql-app/.local_dist/static/HcU1grNdeICz9zVVD_7aa/_buildManifest.js index 19a03ff..5ca2111 100644 --- a/dsql-app/.local_dist/static/Nq-wCyHRgv6y1x0kf3WAs/_buildManifest.js +++ b/dsql-app/.local_dist/static/HcU1grNdeICz9zVVD_7aa/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,e,d,i,t,c,n,u,r,b,g,l,_,m,h,f,p,k,o,j,y,w,v,I,B,F,A,N,D){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:B,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:r,numHashes:B,bitArray:[]},"/":[F,"static/css/60c48dd4b3301227.css","static/chunks/pages/index-55aca6f5ee5ea4e8.js"],"/404":["static/chunks/pages/404-1eace598915739ef.js"],"/500":["static/chunks/pages/500-f40435ff099c3bec.js"],"/_error":["static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":[F,"static/chunks/pages/about-35029bb377afcb90.js"],"/admin":[s,b,k,"static/chunks/pages/admin-efa0744f5c14dc87.js"],"/admin/[user_id]":[s,b,k,"static/chunks/pages/admin/[user_id]-7a323a8952bfcc9e.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-10d23e12f43ee561.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-66673e414574a977.js"],"/admin/[user_id]/databases":[s,b,"static/chunks/pages/admin/[user_id]/databases-6b7a3f30d592000d.js"],"/admin/[user_id]/databases/add-database":[t,s,d,n,o,"static/chunks/pages/admin/[user_id]/databases/add-database-fa3778d6e9bfcc7e.js"],"/admin/[user_id]/databases/[single]":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]-206058876b1ace39.js"],"/admin/[user_id]/databases/[single]/connect":[a,s,e,d,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-f0141d41d59a8f0e.js"],"/admin/[user_id]/databases/[single]/edit-database":[t,a,s,e,d,n,o,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-e87026abaf4b078f.js"],"/admin/[user_id]/databases/[single]/schema":[t,a,s,e,d,c,n,o,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-fb8cddee9e1002a6.js"],"/admin/[user_id]/databases/[single]/shell":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-80b1f573d72d1634.js"],"/admin/[user_id]/databases/[single]/tables":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-fee85f3157ecd3ac.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[t,g,a,l,s,e,d,n,_,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-008870712dd389f8.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[t,g,a,u,l,j,s,e,d,c,n,_,m,y,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-941e5c22e7c7ea7e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[t,g,a,l,s,e,d,c,n,_,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-d8262158ddb6bfc2.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[t,a,u,j,s,e,d,c,m,y,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ed4516e967a3f21e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[a,u,"static/chunks/8779-930a59d1d1a1be5c.js",s,e,c,m,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-8d261204cffa33a9.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[t,a,u,j,s,e,d,c,m,y,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-380611fd56aa33ad.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[t,g,a,l,s,e,d,c,n,_,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-f27e3bf388dde87e.js"],"/admin/[user_id]/databases/[single]/users":[a,s,e,c,h,"static/chunks/pages/admin/[user_id]/databases/[single]/users-de4848c05fe0d9e2.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[a,s,e,d,f,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-660f9e475f68c717.js"],"/admin/[user_id]/databases/[single]/users/add-user":[a,s,e,d,f,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-18b8b63b1ba1c13d.js"],"/admin/[user_id]/databases/[single]/users/[user]":[a,s,e,f,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-817858a3ef1cccd2.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-04a47157d95b361b.js"],"/admin/[user_id]/media":[s,A,"static/chunks/pages/admin/[user_id]/media-56c4ebe221b1b677.js"],"/admin/[user_id]/media/[...folder]":[s,A,"static/chunks/pages/admin/[user_id]/media/[...folder]-44784f384aec9c72.js"],"/admin/[user_id]/schema":[a,s,"static/chunks/pages/admin/[user_id]/schema-22f39a31e6fc9598.js"],"/admin/[user_id]/settings":[t,s,d,n,b,w,k,N,"static/chunks/pages/admin/[user_id]/settings-5a657bc8977fb7f7.js"],"/admin/[user_id]/users":[s,h,"static/chunks/pages/admin/[user_id]/users-aac983ecf3e16d3a.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-b34fda15345c38b4.js"],"/admin/[user_id]/users/databases":[s,h,"static/chunks/pages/admin/[user_id]/users/databases-431cac8ade89240c.js"],"/admin/[user_id]/users/databases/[database]":[s,h,"static/chunks/pages/admin/[user_id]/users/databases/[database]-1e40897f0a25cd14.js"],"/admin/[user_id]/users/databases/[database]/[user]":[s,f,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-2da2075136778947.js"],"/blog":["static/chunks/pages/blog-86a57f87f960d208.js"],"/contact":["static/chunks/pages/contact-cd1dacd74efe270e.js"],"/create-account":[w,N,"static/chunks/pages/create-account-93cce1fe65377589.js"],"/docs":["static/chunks/pages/docs-21d1067cb26803ef.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-f26a582ab816687d.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-d986893c235e6d5b.js"],"/email-verification":["static/chunks/pages/email-verification-b622c0527271a373.js"],"/login":[w,"static/chunks/pages/login-4cd0b4a8e9124058.js"],"/logout":["static/chunks/pages/logout-b8a4207f3314e897.js"],"/privacy":["static/chunks/pages/privacy-85269bae0ca39885.js"],"/redirect":["static/chunks/pages/redirect-f5ba2244ad574804.js"],"/reset-password":[t,"static/chunks/pages/reset-password-bf3706a70e969a34.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-40c349141dc68707.js"],"/su":[i,"static/chunks/pages/su-aef540ca8a9d0d26.js"],"/su/backups":[i,"static/chunks/pages/su/backups-515e155cc25fc6e2.js"],"/su/console":["static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-2960a1457850c87f.js",i,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-b4070a91c4a61e92.js"],"/su/docs":[i,D,"static/chunks/pages/su/docs-2d31693f0537ec1b.js"],"/su/docs/create-page":[u,d,i,p,v,"static/chunks/pages/su/docs/create-page-e5da0607ae76879e.js"],"/su/docs/edit-page":[u,d,i,p,v,"static/chunks/pages/su/docs/edit-page-19991b2455a27bda.js"],"/su/docs/pages":[i,D,"static/chunks/pages/su/docs/pages-09cc22003ca2977d.js"],"/su/docs/pages/[id]":[u,d,i,p,v,"static/chunks/pages/su/docs/pages/[id]-aa63805a266c145f.js"],"/su/envar":[i,"static/chunks/pages/su/envar-cf23a0d85f1b95f7.js"],"/su/error-logs":[i,"static/chunks/pages/su/error-logs-bd760a695db3aa94.js"],"/su/load-balancing":[a,i,"static/chunks/pages/su/load-balancing-0968f396408769a2.js"],"/su/login":["static/chunks/pages/su/login-9f0c33ff7a724b80.js"],"/su/servers":[a,i,"static/chunks/pages/su/servers-9c5cb37918bc40b1.js"],"/su/users":[i,"static/chunks/pages/su/users-bb0e572a5ae16760.js"],"/su/users/new":[i,"static/chunks/pages/su/users/new-7f43159b182edbb0.js"],"/su/users/[single]":[a,i,p,"static/chunks/pages/su/users/[single]-77865aec8f94f04d.js"],"/terms":["static/chunks/pages/terms-02b626fbae43ff93.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-60eb94424d6846c1.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/9799-abc615966398fac4.js","static/chunks/8717-aea4be023740276e.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/1391-727762e25412e6d0.js",0,"static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/2163-2888548322298e53.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/6460-1a5ce626ace242bf.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/6803-fe4ad60e4db387da.js",0,NaN,"static/chunks/9654-a0de90f5592a8262.js","static/chunks/5256-56bdbb8f4109cb29.js","static/chunks/4147-cebaebce870b5fb7.js","static/chunks/5165-f1a837469292e394.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,r,b,g,l,_,m,h,f,p,k,o,j,y,w,v,I,B,F,A,N,D){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:B,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:r,numHashes:B,bitArray:[]},"/":[F,"static/css/60c48dd4b3301227.css","static/chunks/pages/index-55aca6f5ee5ea4e8.js"],"/404":["static/chunks/pages/404-1eace598915739ef.js"],"/500":["static/chunks/pages/500-f40435ff099c3bec.js"],"/_error":["static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":[F,"static/chunks/pages/about-35029bb377afcb90.js"],"/admin":[s,b,k,"static/chunks/pages/admin-efa0744f5c14dc87.js"],"/admin/[user_id]":[s,b,k,"static/chunks/pages/admin/[user_id]-7a323a8952bfcc9e.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-10d23e12f43ee561.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-66673e414574a977.js"],"/admin/[user_id]/databases":[s,b,"static/chunks/pages/admin/[user_id]/databases-6b7a3f30d592000d.js"],"/admin/[user_id]/databases/add-database":[t,s,d,n,o,"static/chunks/pages/admin/[user_id]/databases/add-database-fa3778d6e9bfcc7e.js"],"/admin/[user_id]/databases/[single]":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]-206058876b1ace39.js"],"/admin/[user_id]/databases/[single]/connect":[a,s,e,d,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-f0141d41d59a8f0e.js"],"/admin/[user_id]/databases/[single]/edit-database":[t,a,s,e,d,n,o,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-e87026abaf4b078f.js"],"/admin/[user_id]/databases/[single]/schema":[t,a,s,e,d,c,n,o,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-fb8cddee9e1002a6.js"],"/admin/[user_id]/databases/[single]/shell":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-80b1f573d72d1634.js"],"/admin/[user_id]/databases/[single]/tables":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-fee85f3157ecd3ac.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[t,g,a,l,s,e,d,n,_,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-008870712dd389f8.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[t,g,a,u,l,j,s,e,d,c,n,_,m,y,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-941e5c22e7c7ea7e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[t,g,a,l,s,e,d,c,n,_,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-d8262158ddb6bfc2.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[t,a,u,j,s,e,d,c,m,y,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ed4516e967a3f21e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[a,u,"static/chunks/8779-930a59d1d1a1be5c.js",s,e,c,m,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-8d261204cffa33a9.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[t,a,u,j,s,e,d,c,m,y,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-380611fd56aa33ad.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[t,g,a,l,s,e,d,c,n,_,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-f27e3bf388dde87e.js"],"/admin/[user_id]/databases/[single]/users":[a,s,e,c,h,"static/chunks/pages/admin/[user_id]/databases/[single]/users-de4848c05fe0d9e2.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[a,s,e,d,f,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-660f9e475f68c717.js"],"/admin/[user_id]/databases/[single]/users/add-user":[a,s,e,d,f,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-18b8b63b1ba1c13d.js"],"/admin/[user_id]/databases/[single]/users/[user]":[a,s,e,f,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-817858a3ef1cccd2.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-04a47157d95b361b.js"],"/admin/[user_id]/media":[s,A,"static/chunks/pages/admin/[user_id]/media-56c4ebe221b1b677.js"],"/admin/[user_id]/media/[...folder]":[s,A,"static/chunks/pages/admin/[user_id]/media/[...folder]-44784f384aec9c72.js"],"/admin/[user_id]/schema":[a,s,"static/chunks/pages/admin/[user_id]/schema-22f39a31e6fc9598.js"],"/admin/[user_id]/settings":[t,s,d,n,b,w,k,N,"static/chunks/pages/admin/[user_id]/settings-5a657bc8977fb7f7.js"],"/admin/[user_id]/users":[s,h,"static/chunks/pages/admin/[user_id]/users-aac983ecf3e16d3a.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-b34fda15345c38b4.js"],"/admin/[user_id]/users/databases":[s,h,"static/chunks/pages/admin/[user_id]/users/databases-431cac8ade89240c.js"],"/admin/[user_id]/users/databases/[database]":[s,h,"static/chunks/pages/admin/[user_id]/users/databases/[database]-1e40897f0a25cd14.js"],"/admin/[user_id]/users/databases/[database]/[user]":[s,f,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-2da2075136778947.js"],"/blog":["static/chunks/pages/blog-86a57f87f960d208.js"],"/contact":["static/chunks/pages/contact-cd1dacd74efe270e.js"],"/create-account":[w,N,"static/chunks/pages/create-account-93cce1fe65377589.js"],"/docs":["static/chunks/pages/docs-21d1067cb26803ef.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-f26a582ab816687d.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-d986893c235e6d5b.js"],"/email-verification":["static/chunks/pages/email-verification-b622c0527271a373.js"],"/login":[w,"static/chunks/pages/login-4cd0b4a8e9124058.js"],"/logout":["static/chunks/pages/logout-b8a4207f3314e897.js"],"/privacy":["static/chunks/pages/privacy-85269bae0ca39885.js"],"/redirect":["static/chunks/pages/redirect-f5ba2244ad574804.js"],"/reset-password":[t,"static/chunks/pages/reset-password-bf3706a70e969a34.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-40c349141dc68707.js"],"/su":[i,"static/chunks/pages/su-aef540ca8a9d0d26.js"],"/su/backups":[i,"static/chunks/pages/su/backups-515e155cc25fc6e2.js"],"/su/console":["static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-2960a1457850c87f.js",i,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-b4070a91c4a61e92.js"],"/su/docs":[i,D,"static/chunks/pages/su/docs-2d31693f0537ec1b.js"],"/su/docs/create-page":[u,d,i,p,v,"static/chunks/pages/su/docs/create-page-e5da0607ae76879e.js"],"/su/docs/edit-page":[u,d,i,p,v,"static/chunks/pages/su/docs/edit-page-19991b2455a27bda.js"],"/su/docs/pages":[i,D,"static/chunks/pages/su/docs/pages-09cc22003ca2977d.js"],"/su/docs/pages/[id]":[u,d,i,p,v,"static/chunks/pages/su/docs/pages/[id]-aa63805a266c145f.js"],"/su/envar":[i,"static/chunks/pages/su/envar-cf23a0d85f1b95f7.js"],"/su/error-logs":[i,"static/chunks/pages/su/error-logs-bd760a695db3aa94.js"],"/su/load-balancing":[a,i,"static/chunks/pages/su/load-balancing-0968f396408769a2.js"],"/su/login":["static/chunks/pages/su/login-9f0c33ff7a724b80.js"],"/su/servers":[a,i,"static/chunks/pages/su/servers-9c5cb37918bc40b1.js"],"/su/users":[i,"static/chunks/pages/su/users-bb0e572a5ae16760.js"],"/su/users/new":[i,"static/chunks/pages/su/users/new-7f43159b182edbb0.js"],"/su/users/[single]":[a,i,p,"static/chunks/pages/su/users/[single]-77865aec8f94f04d.js"],"/terms":["static/chunks/pages/terms-02b626fbae43ff93.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-60eb94424d6846c1.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/9799-abc615966398fac4.js","static/chunks/8717-aea4be023740276e.js","static/chunks/304-2b6b4eb0adbbac90.js","static/chunks/5414-904c4e3b277b1a40.js","static/chunks/2016-d9bbef83b5278263.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/6836-b267904eb7c540d4.js","static/chunks/5160-1036ca7a8eaeebea.js","static/chunks/1391-727762e25412e6d0.js",0,"static/chunks/3616-eb6fa93fb451bf57.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/2413-5357ac7638ad8ed0.js","static/chunks/6156-e0dcf7d8f002ae4a.js","static/chunks/2163-2888548322298e53.js","static/chunks/3857-402e95bd26a58769.js","static/chunks/4565-e849d55f03e474f9.js","static/chunks/3061-4daacb81cd42c700.js","static/chunks/820-c223e3d64da3f271.js","static/chunks/6052-968463ac9ad036e9.js","static/chunks/2004-64a7cf1362719c72.js","static/chunks/6460-3f63007c03118fc2.js","static/chunks/9907-e7e1d036d8444890.js","static/chunks/6803-fe4ad60e4db387da.js",0,NaN,"static/chunks/9654-a0de90f5592a8262.js","static/chunks/5256-56bdbb8f4109cb29.js","static/chunks/4147-cebaebce870b5fb7.js","static/chunks/5165-f1a837469292e394.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/Nq-wCyHRgv6y1x0kf3WAs/_ssgManifest.js b/dsql-app/.local_dist/static/HcU1grNdeICz9zVVD_7aa/_ssgManifest.js similarity index 100% rename from dsql-app/.local_dist/static/Nq-wCyHRgv6y1x0kf3WAs/_ssgManifest.js rename to dsql-app/.local_dist/static/HcU1grNdeICz9zVVD_7aa/_ssgManifest.js diff --git a/dsql-app/.local_dist/static/chunks/6460-1a5ce626ace242bf.js b/dsql-app/.local_dist/static/chunks/6460-3f63007c03118fc2.js similarity index 68% rename from dsql-app/.local_dist/static/chunks/6460-1a5ce626ace242bf.js rename to dsql-app/.local_dist/static/chunks/6460-3f63007c03118fc2.js index 6820b0f..1dbc9bb 100644 --- a/dsql-app/.local_dist/static/chunks/6460-1a5ce626ace242bf.js +++ b/dsql-app/.local_dist/static/chunks/6460-3f63007c03118fc2.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6460],{6919:(e,t,l)=>{l.d(t,{A:()=>c});var a=l(4848),s=l(6540),n=l(620),i=l(5896),d=l(3698);function r(e){let{paradigm:t,payload:l,setLoading:a,table:s,database:n}=e;a(!0),(0,d.A)("/api/exportTableData",{method:"POST",body:{paradigm:t,dbName:n.db_slug,tableName:s.tableName,payload:l}},!0).then(e=>{if(e.success){if("export"==t){let t=new Blob([JSON.stringify(e.data||[],null,4)],{type:"application/json"}),l=URL.createObjectURL(t),a=document.createElement("a");a.href=l,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"==t&&(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:t,table:l}=e,[d,c]=s.useState(!1),[o,u]=s.useState(!0),m=s.useRef(null);return s.useRef(null),(0,a.jsxs)("div",{className:"relative",children:[d&&(0,a.jsx)(n.A,{width:"15px"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{r({paradigm:"export",database:t,setLoading:c,table:l})},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?"))?r({paradigm:"import",payload:e.fileBase64,database:t,setLoading:c,table:l}):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})]})}},1627:(e,t,l)=>{l.d(t,{A:()=>x});var a=l(4848),s=l(6540),n=l(5143),i=l(3238),d=l(637),r=l(1301),c=l(620),o=l(4500),u=l(3698),m=l(2543),h=l.n(m);function p(e){let{database:t,table:l,setOpenPopover:n,dbSchemaData:i,query:d}=e,[r,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:r,setOpen:c,children:(0,a.jsx)(f,{database:t,table:l,dbSchemaData:i,query:d})})]})}function f(e){let{database:t,table:l,query:n,dbSchemaData:i}=e,[o,m]=s.useState(i),[p,f]=s.useState("Push"),[x,b]=s.useState(null==o?void 0:o[0]),[v,g]=s.useState(null==x?void 0:x.tables),[j,N]=s.useState(null==v?void 0:v[0]),[y,w]=s.useState(!1),[T,S]=s.useState(!1);return s.useEffect(()=>{h().isEqual(null==l?void 0:l.fields,null==j?void 0:j.fields)?S(!0):S(!1)},[j,b]),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:[y||!o&&(0,a.jsx)(c.A,{width:"20px"}),(0,a.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),T?(0,a.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,a.jsx)("b",{children:l.tableFullName})," ","schema"]}):(0,a.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,a.jsx)("b",{children:l.tableFullName})]}),o&&(0,a.jsxs)("form",{onSubmit:e=>{!function(e){var t,l,a;let{e:s,setLoading:n,database:i,table:d,query:r}=e;s.preventDefault(),n(!0);let c=s.target,o=null===(t=c.paradigm)||void 0===t?void 0:t.value,m=null===(l=c.database)||void 0===l?void 0:l.value,h=null===(a=c.table)||void 0===a?void 0:a.value,p={paradigm:o,src:{db:i.db_slug,table:d.tableName},dst:{db:m,table:h},delegated:r.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:{...p}},!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:t,setLoading:w,table:l,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)(d.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{f(e.target.value)}}),(0,a.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==p?(0,a.jsxs)(a.Fragment,{children:["Sync data from the current table(",(0,a.jsx)("b",{children:l.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:l.tableFullName}),")"]})})]}),(0,a.jsx)(r.A,{selectOptions:o.filter(e=>e.dbFullName!==t.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let t=o.find(t=>t.dbSlug==e.target.value);if(t){var l;b(t),g(t.tables),N(null===(l=t.tables)||void 0===l?void 0:l[0])}}}),(0,a.jsx)(r.A,{selectOptions:v.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=v.find(t=>t.tableName===e.target.value);t&&N(t)}}),(0,a.jsx)("button",{className:T?"":"disabled",children:"Sync"})]})]})}function x(e){let{database:t,table:l,dbSchemaData:d,query:r}=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)(p,{database:t,table:l,setOpenPopover:o,dbSchemaData:d,query:r}),(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,{})})})}},5098:(e,t,l)=>{let a;l.d(t,{A:()=>x});var s=l(4848),n=l(6540),i=l(7111),d=l(1041),r=l(1301),c=l(5414),o=l(3698),u=l(620);function m(e){var t,i,m,h;let{data:p}=e,{table:f,entries:x,activeEntries:b,setActiveEntries:v,confirmedDelegetedUser:g,database:j,targetField:N,searchTerm:y}=n.useContext(d.TableEntriesContext);l(4327),null==g||g.delegated,null==g||null===(t=g.priviledges)||void 0===t||t.match(/Edit Tables/i),null==g||null===(i=g.priviledges)||void 0===i||i.match(/Delete Tables/i),null==g||null===(m=g.priviledges)||void 0===m||m.match(/Create Tables/i);let[w,T]=n.useState(!1),S=n.useRef();n.useEffect(()=>{S.current&&S.current.focus()},[]);let[E,A]=n.useState(null);function _(e){var t,l;if(T(!0),b&&v(null),!(null==e?void 0:e.toString().match(/./))){setTimeout(()=>{v&&v(x||[]),T(!1)},500);return}window.clearTimeout(a);let s=null==f?void 0:f.fields.filter(e=>e.fieldName===(null==N?void 0:N.current)),n=s&&s[0]&&(null===(l=s[0].dataType)||void 0===l?void 0:l.match(/int/i))||(null==N?void 0:null===(t=N.current)||void 0===t?void 0:t.match(/^id$/))?"equal":"like";a=setTimeout(()=>{T(!1),(0,o.A)("/api/queryEntriesSearchTerm?db=".concat(null==j?void 0:j.db_full_name,"&table=").concat(null==f?void 0:f.tableName,"&field=").concat(null==N?void 0:N.current,"&term=").concat(e,"&operator=").concat(n)).then(e=>{"number"==typeof e.count&&A(e.count),e.success&&v&&v(e.result),T(!1)})},500)}return(0,s.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(null==y?void 0:y.current)&&_(y.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,s.jsx)("div",{className:"max-w-xs",children:(0,s.jsx)(r.A,{required:!0,selectOptions:f?f.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{N&&(N.current=e.target.value)},title:"Select Field",defaultValue:null==N?void 0:N.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 t;let l=e.target;(null===(t=l.value)||void 0===t?void 0:t.match(/./))&&y?y.current=l.value:y&&(y.current=null),_(l.value)},elementRef:S,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==y?void 0:null===(h=y.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 E?E>0?(0,s.jsxs)("b",{children:[E," "]}):(0,s.jsx)(s.Fragment,{children:"No "}):"... ","Search result",E&&1!==E?"s":""," for"," ",(0,s.jsxs)("b",{children:['"',y.current,'"']})]})})]})}var h=l(6919),p=l(1627),f=l(2276);function x(e){var t,l,a,d,r;let{user:c,entries:o,database:x,table:b,setTargetEntry:v,dbSchemaData:g,richTextEditors:j,jsonTextEditors:N,dataTypes:y,title:w,confirmedDelegetedUser:T,query:S,search:E,entriesCount:A}=e;null==T||T.delegated,null==T||null===(t=T.priviledges)||void 0===t||t.match(/Edit Tables/i),null==T||null===(l=T.priviledges)||void 0===l||l.match(/Delete Tables/i),null==T||null===(a=T.priviledges)||void 0===a||a.match(/Create Tables/i),null==T||null===(d=T.priviledges)||void 0===d||d.match(/Edit Entries/i),null==T||null===(r=T.priviledges)||void 0===r||r.match(/Delete Entries/i);let{active_clone:_,active_clone_parent_db:C,remote_connected:F}=x;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(x.db_slug,"/tables/").concat(b.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:x,table:b}),(0,s.jsx)(p.A,{database:x,table:b,dbSchemaData:g,query:S})]})]}),E&&(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:x,table:b,dbSchemaData:g,richTextEditors:j,dataTypes:y,entry:e,query:S,confirmedDelegetedUser:T,jsonTextEditors:N})},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(x.db_slug,"/tables/").concat(b.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)(f.A,{}),(0,s.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),A&&A>10?(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(x.db_slug,"/tables/").concat(b.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(x.db_slug,"/tables/").concat(b.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"})]})]})]})})}},7111:(e,t,l)=>{l.d(t,{A:()=>b});var a=l(4848),s=l(6540),n=l(8825),i=l(3698),d=l(7531),r=l(6604),c=l(620),o=l(8214),u=l(2543),m=l.n(u),h=l(1263),p=l(3238),f=l(5143);function x(e){let{user:t,table:l,entry:n,url:i,query:d}=e,[r,c]=s.useState(!1),o=s.useRef(null);return(0,a.jsx)("div",{className:"relative z-[1000]",children:(0,a.jsx)(f.Popover,{isOpen:r,onClickOutside:()=>c(!1),containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,a.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,a.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(n)).then(()=>{window.alert("Post Copied"),c(!1)})},children:"Copy Object"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let e=(0,h.A)({paradigm:"JavaScript",table:l,query:d,user:t});navigator.clipboard.writeText(e||"").then(()=>{window.alert("JavaScript Type Definition Copied"),c(!1)})},children:"Copy JS Type Definition"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let e=(0,h.A)({paradigm:"TypeScript",table:l,query:d,user:t});navigator.clipboard.writeText(e||"").then(()=>{window.alert("TypeScript Type Definition Copied"),c(!1)})},children:"Copy TS Type Definition"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("a",{href:i,className:"button plain-text justify-start py-3",children:(0,a.jsx)("span",{children:"View Entry"})})]})}),children:(0,a.jsx)("button",{onClick:()=>{c(!r)},ref:o,className:"ghost p-2",children:(0,a.jsx)(p.A,{})})})})}function b(e){var t,l,u,h,p;let{user:f,database:b,table:v,dbSchemaData:g,richTextEditors:j,jsonTextEditors:N,dataTypes:y,entry:w,entryPage:T,confirmedDelegetedUser:S,query:E}=e,A=v.fields.filter(e=>e.fieldName&&!e.fieldName.match(n.A)),_=v.fields.find(e=>"uuid"===e.fieldName),C=null==S?void 0:S.delegated;null==S||null===(t=S.priviledges)||void 0===t||t.match(/Edit Tables/i),null==S||null===(l=S.priviledges)||void 0===l||l.match(/Delete Tables/i),null==S||null===(u=S.priviledges)||void 0===u||u.match(/Create Tables/i),null==S||null===(h=S.priviledges)||void 0===h||h.match(/Edit Entries/i);let F=null==S?void 0:null===(p=S.priviledges)||void 0===p?void 0:p.match(/Delete Entries/i);_&&A.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),A.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),A.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),A.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),A.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),A.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),A.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),A.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});let[k,D]=s.useState(!1),[R,I]=s.useState(!0),[O,P]=s.useState(w),[U,q]=s.useState(!1);s.useRef(null);let L=s.useRef([]),[H,B]=s.useState("/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/").concat(O.id));s.useEffect(()=>{(null==S?void 0:S.dbUserId)&&Number(f.id)!==Number(S.dbUserId)&&B("/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/").concat(O.id)+window.location.search)},[]);let M="".concat(b.db_slug,"-").concat(v.tableName,"-").concat(O.id,"-submit-button");return(0,a.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,a.jsx)("a",{href:H,onClick:e=>{let t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,a.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:e=>{let t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(H,"__blank"):window.location.href=H)},children:[(0,a.jsxs)("span",{children:["Entry #",O.id]}),(0,a.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!C||C&&F)&&(0,a.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(k?" pointer-events-none opacity-40":""),onClick:e=>{window.confirm("Delete Entry #".concat(O.id,"?"))&&(D(!0),(0,i.A)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:b.db_full_name,tableName:v.tableName,entryId:O.id,dbSlug:b.db_slug,dbId:b.id,delegated:null==E?void 0:E.delegated,confirmedDelegetedUser:S}},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(window.alert(e.msg),setTimeout(()=>{D(!1)},500))}))},children:"Delete Entry"}),!T&&(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:e=>{R?I(!1):I(!0)},children:R?(0,a.jsx)("span",{children:"Expand"}):(0,a.jsx)("span",{children:"Collapse"})})]}),(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)("div",{className:"button ghost px-0",onClick:e=>{let t=m().cloneDeep(w);delete t.date_created,delete t.date_created_code,delete t.date_created_timestamp,delete t.date_updated,delete t.date_updated_code,delete t.date_updated_timestamp,delete t.id,delete t.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(t)),window.location.href="/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry?duplicate=true&id=").concat(w.id)},children:(0,a.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)(x,{table:v,user:f,entry:w,query:E,url:H})]})]})}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:T?{}:{maxHeight:R?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:e=>{e.preventDefault(),D(!0);let t={},l=e.target;A.forEach(e=>{var a;if(!e.fieldName||!l[e.fieldName])return;let s="string"!=typeof l[e.fieldName].value,n="number"!=typeof l[e.fieldName].value;(s||n||l[e.fieldName].value)&&(null!==(a=l[e.fieldName])&&void 0!==a&&a.dataset.default||(t[e.fieldName]=l[e.fieldName].value))}),L.current[0]&&L.current.forEach(e=>{var l;(null==e?void 0:e.fieldName)&&(null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.current)&&(t[e.fieldName]=e.ref.current.getContent())}),N.current[0]&&N.current.forEach(e=>{var l;(null==e?void 0:e.fieldName)&&(null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.current)&&(t[e.fieldName]=e.ref.current.getValue())}),(0,i.A)("/api/updateTableEntry",{method:"post",body:{dbFullName:b.db_full_name,dbSlug:b.db_slug,dbId:b.id,tableName:v.tableName,entryId:O.id,payload:t,tableSchema:v,delegated:null==E?void 0:E.delegated,confirmedDelegetedUser:S}},!0).then(e=>{e.success?(0,i.A)("/api/refreshEntry?table=".concat(v.tableName,"&db=").concat(b.db_full_name,"&id=").concat(O.id,"&schema=").concat(JSON.stringify(v))).then(e=>{e.success&&(P(e.entry),setTimeout(()=>{D(!1)},500))}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{D(!1)},500))})},onKeyUp:e=>{if(e.ctrlKey&&"Enter"==e.key){var t;window.confirm("Update this Form?")&&(null===(t=document.getElementById(M))||void 0===t||t.click())}},children:[k&&(0,a.jsx)(c.A,{}),(R&&!T?A.slice(0,3):A).map((e,t)=>{let l=y.filter(t=>{var l;return t.name===(null===(l=e.dataType)||void 0===l?void 0:l.replace(/\d|\(|\)/g,""))});return(0,a.jsx)(o.A,{fieldObject:e,dataTypeSchema:l[0],richTextEditors:j,currentRichTextEditorForms:L,entry:O,query:E,entryPage:T,confirmedDelegetedUser:S,jsonTextEditors:N,formButtonId:M},t+1)}),(0,a.jsx)("button",{type:"submit",className:k?" pointer-events-none opacity-40":"",id:M,children:"Update Entry"})]}),!T&&(0,a.jsx)(r.A,{collapse:R,setCollapse:I})]})}},637:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(4848);function s(e){let{radioValues:t,name:l,onChangeHandler:s,setAlert:n,flexRow:i,labelColor:d,baseText:r,smallText:c,className:o}=e;try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(o||""),children:t.map((e,t)=>{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"+(r?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:l,id:l+"_"+m,onChange:t=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(t):s&&s(t)},value:"string"==typeof m?m:void 0}),u||(0,a.jsx)("label",{htmlFor:l+"_"+m,className:"text-lg m-0 "+(d||"text-slate-800")+(r?" text-base":c?" text-sm":" text-lg"),children:o})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}l(6540)},1301:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(4848),s=l(2027);function n(e){let{selectOptions:t,name:l,onChangeHandler:n,required:i,setAlert:d,title:r,defaultValue:c,info:o,id:u}=e;try{function m(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!l.classList.contains("hidden")){l.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&l.classList.contains("hidden"))){if(!t){l.classList.add("hidden");return}if(l.classList.contains("hidden")){l.classList.remove("hidden");return}l.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[r&&(0,a.jsxs)("label",{htmlFor:l,children:[r,i?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:l,id:u||l,className:"w-full bg-white",required:i,onChange:e=>{d&&d(null),e.target.classList.remove("warning"),n&&n(e)},defaultValue:c||void 0,children:t.map((e,t)=>{let{payload:l,title:s}=e;return(0,a.jsx)("option",{value:l,selected:!!e.default,children:s},t+1)})}),(0,a.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,a.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:m,onMouseLeave:m,onClick:m,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.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,a.jsx)("span",{children:o})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}l(6540)},1041:(e,t,l)=>{let a;l.r(t),l.d(t,{TableEntriesContext:()=>w,__N_SSP:()=>y,default:()=>T});var s=l(4848),n=l(6540),i=l(1187),d=l(9862),r=l(4709),c=l(7121),o=l(5098),u=l(2378),m=l(8070),h=l(6836),p=l(620),f=l(3698);l(2543);var x=l(6919),b=l(1627);function v(e){var t,a,i;let{user:p,database:f,table:v,dbSchemaData:j,setTargetEntry:N,richTextEditors:y,jsonTextEditors:T,query:S,confirmedDelegetedUser:E,activeEntries:A,entriesCount:_,setActiveEntries:C}=n.useContext(w),F=l(4327);return null==E||E.delegated,null==E||null===(t=E.priviledges)||void 0===t||t.match(/Edit Tables/i),null==E||null===(a=E.priviledges)||void 0===a||a.match(/Delete Tables/i),null==E||null===(i=E.priviledges)||void 0===i||i.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)(d.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:[v.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(c.A,{slugText:v.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,s.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,s.jsxs)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/databases/").concat(f.db_slug,"/tables/").concat(v.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)(x.A,{database:f,table:v}),(0,s.jsx)(b.A,{database:f,table:v,dbSchemaData:j,query:S})]})]}),(0,s.jsx)(r.A,{confirmedDelegetedUser:null==S?void 0:S.delegated,user:p})]}),f.active_clone?(0,s.jsx)(u.A,{database:f,user:p}):(0,s.jsx)(s.Fragment,{}),f.remote_connected?(0,s.jsx)(h.p,{database:f}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(m.A,{table:v,database:f,user:p}),(0,s.jsx)(o.A,{user:p,entries:A,database:f,table:v,setTargetEntry:N,dbSchemaData:j,richTextEditors:y,dataTypes:F,query:S,confirmedDelegetedUser:E,jsonTextEditors:T,search:!0}),_>20&&(0,s.jsx)(g,{activeEntries:A,setActiveEntries:C,database:f,table:v,entriesCount:_})]})}function g(e){let{activeEntries:t,setActiveEntries:l,database:i,table:d,entriesCount:r}=e,c=n.useContext(w),o=n.useRef(),u=n.useRef(1),m=20*Number(u.current);return(n.useEffect(()=>{function e(e,t){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"),t=document.getElementById("entries-search-field-select"),s={tableName:d.tableName,dbName:i.db_slug,page:u.current,tableSchema:d,search:e?e.value:void 0,searchField:t?t.value:void 0,delegated:!!c.query.delegated};(0,f.A)("/api/infiniteScroll",{method:"POST",body:s},!0).then(e=>{e.success&&(e.page&&(u.current=e.page),window.clearTimeout(a),a=setTimeout(()=>{var t,a;(null===(t=e.data)||void 0===t?void 0:t[0])&&(null===(a=e.data)||void 0===a?void 0:a[0])&&l(t=>t?[...t,...e.data]:null)},500))}).catch(e=>{console.log("Infinite Scroll Error =>",e)}).finally(()=>{console.log("Infinite Scroll Done. Page",u.current)})}}let t={rootMargin:"0px 0px 0px 0px"};setTimeout(()=>{requestAnimationFrame(()=>{let l=new IntersectionObserver(e,t);o.current&&l.observe(o.current)})},1e3)},[]),m>=r)?(0,s.jsx)(n.Fragment,{}):(0,s.jsx)("div",{className:"w-full flex items-center justify-center",ref:o,children:(0,s.jsx)(p.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}var j=l(5897),N=l(5107),y=!0;let w=n.createContext({});function T(e){let{user:t,database:l,table:a,dbSchemaData:d,entries:r,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"})]}),[p,f]=n.useState(null),[x,b]=n.useState(r),g=n.useRef("title"),y=n.useRef(null),T=n.useRef([]),S=n.useRef([]);return(0,s.jsx)(i.A,{head:h,user:t,extraHeaderContent:(0,s.jsx)(j.A,{database:l,query:c,confirmedDelegetedUser:o,user:t}),children:(0,s.jsxs)(w.Provider,{value:{user:t,database:l,table:a,dbSchemaData:d,entries:r,targetEntry:p,setTargetEntry:f,richTextEditors:T,jsonTextEditors:S,query:c,confirmedDelegetedUser:o,activeEntries:x,setActiveEntries:b,targetField:g,searchTerm:y,entriesCount:u},children:[(0,s.jsx)(v,{}),(0,s.jsx)(N.A,{snug:!0})]})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6460],{6919:(e,t,l)=>{l.d(t,{A:()=>c});var a=l(4848),s=l(6540),n=l(620),i=l(5896),d=l(3698);function r(e){let{paradigm:t,payload:l,setLoading:a,table:s,database:n}=e;a(!0),(0,d.A)("/api/exportTableData",{method:"POST",body:{paradigm:t,dbName:n.db_slug,tableName:s.tableName,payload:l}},!0).then(e=>{if(e.success){if("export"==t){let t=new Blob([JSON.stringify(e.data||[],null,4)],{type:"application/json"}),l=URL.createObjectURL(t),a=document.createElement("a");a.href=l,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"==t&&(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:t,table:l}=e,[d,c]=s.useState(!1),[o,u]=s.useState(!0),m=s.useRef(null);return s.useRef(null),(0,a.jsxs)("div",{className:"relative",children:[d&&(0,a.jsx)(n.A,{width:"15px"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{r({paradigm:"export",database:t,setLoading:c,table:l})},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?"))?r({paradigm:"import",payload:e.fileBase64,database:t,setLoading:c,table:l}):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})]})}},1627:(e,t,l)=>{l.d(t,{A:()=>x});var a=l(4848),s=l(6540),n=l(5143),i=l(3238),d=l(637),r=l(1301),c=l(620),o=l(4500),u=l(3698),m=l(2543),h=l.n(m);function p(e){let{database:t,table:l,setOpenPopover:n,dbSchemaData:i,query:d}=e,[r,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:r,setOpen:c,children:(0,a.jsx)(f,{database:t,table:l,dbSchemaData:i,query:d})})]})}function f(e){let{database:t,table:l,query:n,dbSchemaData:i}=e,[o,m]=s.useState(i),[p,f]=s.useState("Push"),[x,b]=s.useState(null==o?void 0:o[0]),[v,g]=s.useState(null==x?void 0:x.tables),[j,N]=s.useState(null==v?void 0:v[0]),[y,w]=s.useState(!1),[T,S]=s.useState(!1);return s.useEffect(()=>{h().isEqual(null==l?void 0:l.fields,null==j?void 0:j.fields)?S(!0):S(!1)},[j,b]),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:[y||!o&&(0,a.jsx)(c.A,{width:"20px"}),(0,a.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),T?(0,a.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,a.jsx)("b",{children:l.tableFullName})," ","schema"]}):(0,a.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,a.jsx)("b",{children:l.tableFullName})]}),o&&(0,a.jsxs)("form",{onSubmit:e=>{!function(e){var t,l,a;let{e:s,setLoading:n,database:i,table:d,query:r}=e;s.preventDefault(),n(!0);let c=s.target,o=null===(t=c.paradigm)||void 0===t?void 0:t.value,m=null===(l=c.database)||void 0===l?void 0:l.value,h=null===(a=c.table)||void 0===a?void 0:a.value,p={paradigm:o,src:{db:i.db_slug,table:d.tableName},dst:{db:m,table:h},delegated:r.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:{...p}},!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:t,setLoading:w,table:l,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)(d.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{f(e.target.value)}}),(0,a.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==p?(0,a.jsxs)(a.Fragment,{children:["Sync data from the current table(",(0,a.jsx)("b",{children:l.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:l.tableFullName}),")"]})})]}),(0,a.jsx)(r.A,{selectOptions:o.filter(e=>e.dbFullName!==t.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let t=o.find(t=>t.dbSlug==e.target.value);if(t){var l;b(t),g(t.tables),N(null===(l=t.tables)||void 0===l?void 0:l[0])}}}),(0,a.jsx)(r.A,{selectOptions:v.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=v.find(t=>t.tableName===e.target.value);t&&N(t)}}),(0,a.jsx)("button",{className:T?"":"disabled",children:"Sync"})]})]})}function x(e){let{database:t,table:l,dbSchemaData:d,query:r}=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)(p,{database:t,table:l,setOpenPopover:o,dbSchemaData:d,query:r}),(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,{})})})}},5098:(e,t,l)=>{let a;l.d(t,{A:()=>x});var s=l(4848),n=l(6540),i=l(7111),d=l(1041),r=l(1301),c=l(5414),o=l(3698),u=l(620);function m(e){var t,i,m,h;let{data:p}=e,{table:f,entries:x,activeEntries:b,setActiveEntries:v,confirmedDelegetedUser:g,database:j,targetField:N,searchTerm:y}=n.useContext(d.TableEntriesContext);l(4327),null==g||g.delegated,null==g||null===(t=g.priviledges)||void 0===t||t.match(/Edit Tables/i),null==g||null===(i=g.priviledges)||void 0===i||i.match(/Delete Tables/i),null==g||null===(m=g.priviledges)||void 0===m||m.match(/Create Tables/i);let[w,T]=n.useState(!1),S=n.useRef();n.useEffect(()=>{S.current&&S.current.focus()},[]);let[E,A]=n.useState(null);function _(e){var t,l;if(T(!0),b&&v(null),!(null==e?void 0:e.toString().match(/./))){setTimeout(()=>{v&&v(x||[]),T(!1)},500);return}window.clearTimeout(a);let s=null==f?void 0:f.fields.filter(e=>e.fieldName===(null==N?void 0:N.current)),n=s&&s[0]&&(null===(l=s[0].dataType)||void 0===l?void 0:l.match(/int/i))||(null==N?void 0:null===(t=N.current)||void 0===t?void 0:t.match(/^id$/))?"equal":"like";a=setTimeout(()=>{T(!1),(0,o.A)("/api/queryEntriesSearchTerm?db=".concat(null==j?void 0:j.db_full_name,"&table=").concat(null==f?void 0:f.tableName,"&field=").concat(null==N?void 0:N.current,"&term=").concat(e,"&operator=").concat(n)).then(e=>{"number"==typeof e.count&&A(e.count),e.success&&v&&v(e.result),T(!1)})},500)}return(0,s.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(null==y?void 0:y.current)&&_(y.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,s.jsx)("div",{className:"max-w-xs",children:(0,s.jsx)(r.A,{required:!0,selectOptions:f?f.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{N&&(N.current=e.target.value)},title:"Select Field",defaultValue:null==N?void 0:N.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 t;let l=e.target;(null===(t=l.value)||void 0===t?void 0:t.match(/./))&&y?y.current=l.value:y&&(y.current=null),_(l.value)},elementRef:S,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==y?void 0:null===(h=y.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 E?E>0?(0,s.jsxs)("b",{children:[E," "]}):(0,s.jsx)(s.Fragment,{children:"No "}):"... ","Search result",E&&1!==E?"s":""," for"," ",(0,s.jsxs)("b",{children:['"',y.current,'"']})]})})]})}var h=l(6919),p=l(1627),f=l(2276);function x(e){var t,l,a,d,r;let{user:c,entries:o,database:x,table:b,setTargetEntry:v,dbSchemaData:g,richTextEditors:j,jsonTextEditors:N,dataTypes:y,title:w,confirmedDelegetedUser:T,query:S,search:E,entriesCount:A}=e;null==T||T.delegated,null==T||null===(t=T.priviledges)||void 0===t||t.match(/Edit Tables/i),null==T||null===(l=T.priviledges)||void 0===l||l.match(/Delete Tables/i),null==T||null===(a=T.priviledges)||void 0===a||a.match(/Create Tables/i),null==T||null===(d=T.priviledges)||void 0===d||d.match(/Edit Entries/i),null==T||null===(r=T.priviledges)||void 0===r||r.match(/Delete Entries/i);let{active_clone:_,active_clone_parent_db:C,remote_connected:F}=x;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(x.db_slug,"/tables/").concat(b.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:x,table:b}),(0,s.jsx)(p.A,{database:x,table:b,dbSchemaData:g,query:S})]})]}),E&&(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:x,table:b,dbSchemaData:g,richTextEditors:j,dataTypes:y,entry:e,query:S,confirmedDelegetedUser:T,jsonTextEditors:N})},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(x.db_slug,"/tables/").concat(b.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)(f.A,{}),(0,s.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),A&&A>10?(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(x.db_slug,"/tables/").concat(b.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(x.db_slug,"/tables/").concat(b.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"})]})]})]})})}},7111:(e,t,l)=>{l.d(t,{A:()=>b});var a=l(4848),s=l(6540),n=l(8825),i=l(3698),d=l(7531),r=l(6604),c=l(620),o=l(8214),u=l(2543),m=l.n(u),h=l(1263),p=l(3238),f=l(5143);function x(e){let{user:t,table:l,entry:n,url:i,query:d}=e,[r,c]=s.useState(!1),o=s.useRef(null);return(0,a.jsx)("div",{className:"relative z-[1000]",children:(0,a.jsx)(f.Popover,{isOpen:r,onClickOutside:()=>c(!1),containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,a.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,a.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(n)).then(()=>{window.alert("Post Copied"),c(!1)})},children:"Copy Object"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let e=(0,h.A)({paradigm:"JavaScript",table:l,query:d,user:t});navigator.clipboard.writeText(e||"").then(()=>{window.alert("JavaScript Type Definition Copied"),c(!1)})},children:"Copy JS Type Definition"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let e=(0,h.A)({paradigm:"TypeScript",table:l,query:d,user:t});navigator.clipboard.writeText(e||"").then(()=>{window.alert("TypeScript Type Definition Copied"),c(!1)})},children:"Copy TS Type Definition"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("a",{href:i,className:"button plain-text justify-start py-3",children:(0,a.jsx)("span",{children:"View Entry"})})]})}),children:(0,a.jsx)("button",{onClick:()=>{c(!r)},ref:o,className:"ghost p-2",children:(0,a.jsx)(p.A,{})})})})}function b(e){var t,l,u,h,p;let{user:f,database:b,table:v,dbSchemaData:g,richTextEditors:j,jsonTextEditors:N,dataTypes:y,entry:w,entryPage:T,confirmedDelegetedUser:S,query:E}=e,A=v.fields.filter(e=>e.fieldName&&!e.fieldName.match(n.A)),_=v.fields.find(e=>"uuid"===e.fieldName),C=null==S?void 0:S.delegated;null==S||null===(t=S.priviledges)||void 0===t||t.match(/Edit Tables/i),null==S||null===(l=S.priviledges)||void 0===l||l.match(/Delete Tables/i),null==S||null===(u=S.priviledges)||void 0===u||u.match(/Create Tables/i),null==S||null===(h=S.priviledges)||void 0===h||h.match(/Edit Entries/i);let F=null==S?void 0:null===(p=S.priviledges)||void 0===p?void 0:p.match(/Delete Entries/i);_&&A.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),A.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),A.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),A.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),A.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),A.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),A.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),A.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});let[k,D]=s.useState(!1),[R,I]=s.useState(!0),[O,P]=s.useState(w),[U,q]=s.useState(!1);s.useRef(null);let L=s.useRef([]),[H,B]=s.useState("/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/").concat(O.id));s.useEffect(()=>{(null==S?void 0:S.dbUserId)&&Number(f.id)!==Number(S.dbUserId)&&B("/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/").concat(O.id)+window.location.search)},[]);let M="".concat(b.db_slug,"-").concat(v.tableName,"-").concat(O.id,"-submit-button");return(0,a.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,a.jsx)("a",{href:H,onClick:e=>{let t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,a.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:e=>{let t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(H,"__blank"):window.location.href=H)},children:[(0,a.jsxs)("span",{children:["Entry #",O.id]}),(0,a.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!C||C&&F)&&(0,a.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(k?" pointer-events-none opacity-40":""),onClick:e=>{window.confirm("Delete Entry #".concat(O.id,"?"))&&(D(!0),(0,i.A)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:b.db_full_name,tableName:v.tableName,entryId:O.id,dbSlug:b.db_slug,dbId:b.id,delegated:null==E?void 0:E.delegated,confirmedDelegetedUser:S}},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(window.alert(e.msg),setTimeout(()=>{D(!1)},500))}))},children:"Delete Entry"}),!T&&(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:e=>{R?I(!1):I(!0)},children:R?(0,a.jsx)("span",{children:"Expand"}):(0,a.jsx)("span",{children:"Collapse"})})]}),(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)("div",{className:"button ghost px-0",onClick:e=>{let t=m().cloneDeep(w);delete t.date_created,delete t.date_created_code,delete t.date_created_timestamp,delete t.date_updated,delete t.date_updated_code,delete t.date_updated_timestamp,delete t.id,delete t.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(t)),window.location.href="/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry?duplicate=true&id=").concat(w.id)},children:(0,a.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)(x,{table:v,user:f,entry:w,query:E,url:H})]})]})}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:T?{}:{maxHeight:R?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:e=>{e.preventDefault(),D(!0);let t={},l=e.target;A.forEach(e=>{var a;if(!e.fieldName||!l[e.fieldName])return;let s="string"!=typeof l[e.fieldName].value,n="number"!=typeof l[e.fieldName].value;(s||n||l[e.fieldName].value)&&(null!==(a=l[e.fieldName])&&void 0!==a&&a.dataset.default||(t[e.fieldName]=l[e.fieldName].value))}),L.current[0]&&L.current.forEach(e=>{var l;(null==e?void 0:e.fieldName)&&(null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.current)&&(t[e.fieldName]=e.ref.current.getContent())}),N.current[0]&&N.current.forEach(e=>{var l;(null==e?void 0:e.fieldName)&&(null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.current)&&(t[e.fieldName]=e.ref.current.getValue())}),(0,i.A)("/api/updateTableEntry",{method:"post",body:{dbFullName:b.db_full_name,dbSlug:b.db_slug,dbId:b.id,tableName:v.tableName,entryId:O.id,payload:t,tableSchema:v,delegated:null==E?void 0:E.delegated,confirmedDelegetedUser:S}},!0).then(e=>{e.success?(0,i.A)("/api/refreshEntry",{method:"POST",body:{table:v.tableName,db:b.db_full_name,id:O.id,schema:JSON.stringify(v)}}).then(e=>{e.success&&(P(e.entry),setTimeout(()=>{D(!1)},500))}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{D(!1)},500))})},onKeyUp:e=>{if(e.ctrlKey&&"Enter"==e.key){var t;window.confirm("Update this Form?")&&(null===(t=document.getElementById(M))||void 0===t||t.click())}},children:[k&&(0,a.jsx)(c.A,{}),(R&&!T?A.slice(0,3):A).map((e,t)=>{let l=y.filter(t=>{var l;return t.name===(null===(l=e.dataType)||void 0===l?void 0:l.replace(/\d|\(|\)/g,""))});return(0,a.jsx)(o.A,{fieldObject:e,dataTypeSchema:l[0],richTextEditors:j,currentRichTextEditorForms:L,entry:O,query:E,entryPage:T,confirmedDelegetedUser:S,jsonTextEditors:N,formButtonId:M},t+1)}),(0,a.jsx)("button",{type:"submit",className:k?" pointer-events-none opacity-40":"",id:M,children:"Update Entry"})]}),!T&&(0,a.jsx)(r.A,{collapse:R,setCollapse:I})]})}},637:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(4848);function s(e){let{radioValues:t,name:l,onChangeHandler:s,setAlert:n,flexRow:i,labelColor:d,baseText:r,smallText:c,className:o}=e;try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(o||""),children:t.map((e,t)=>{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"+(r?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:l,id:l+"_"+m,onChange:t=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(t):s&&s(t)},value:"string"==typeof m?m:void 0}),u||(0,a.jsx)("label",{htmlFor:l+"_"+m,className:"text-lg m-0 "+(d||"text-slate-800")+(r?" text-base":c?" text-sm":" text-lg"),children:o})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}l(6540)},1301:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(4848),s=l(2027);function n(e){let{selectOptions:t,name:l,onChangeHandler:n,required:i,setAlert:d,title:r,defaultValue:c,info:o,id:u}=e;try{function m(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!l.classList.contains("hidden")){l.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&l.classList.contains("hidden"))){if(!t){l.classList.add("hidden");return}if(l.classList.contains("hidden")){l.classList.remove("hidden");return}l.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[r&&(0,a.jsxs)("label",{htmlFor:l,children:[r,i?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:l,id:u||l,className:"w-full bg-white",required:i,onChange:e=>{d&&d(null),e.target.classList.remove("warning"),n&&n(e)},defaultValue:c||void 0,children:t.map((e,t)=>{let{payload:l,title:s}=e;return(0,a.jsx)("option",{value:l,selected:!!e.default,children:s},t+1)})}),(0,a.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,a.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:m,onMouseLeave:m,onClick:m,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.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,a.jsx)("span",{children:o})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}l(6540)},1041:(e,t,l)=>{let a;l.r(t),l.d(t,{TableEntriesContext:()=>w,__N_SSP:()=>y,default:()=>T});var s=l(4848),n=l(6540),i=l(1187),d=l(9862),r=l(4709),c=l(7121),o=l(5098),u=l(2378),m=l(8070),h=l(6836),p=l(620),f=l(3698);l(2543);var x=l(6919),b=l(1627);function v(e){var t,a,i;let{user:p,database:f,table:v,dbSchemaData:j,setTargetEntry:N,richTextEditors:y,jsonTextEditors:T,query:S,confirmedDelegetedUser:E,activeEntries:A,entriesCount:_,setActiveEntries:C}=n.useContext(w),F=l(4327);return null==E||E.delegated,null==E||null===(t=E.priviledges)||void 0===t||t.match(/Edit Tables/i),null==E||null===(a=E.priviledges)||void 0===a||a.match(/Delete Tables/i),null==E||null===(i=E.priviledges)||void 0===i||i.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)(d.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:[v.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(c.A,{slugText:v.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,s.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,s.jsxs)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/databases/").concat(f.db_slug,"/tables/").concat(v.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)(x.A,{database:f,table:v}),(0,s.jsx)(b.A,{database:f,table:v,dbSchemaData:j,query:S})]})]}),(0,s.jsx)(r.A,{confirmedDelegetedUser:null==S?void 0:S.delegated,user:p})]}),f.active_clone?(0,s.jsx)(u.A,{database:f,user:p}):(0,s.jsx)(s.Fragment,{}),f.remote_connected?(0,s.jsx)(h.p,{database:f}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(m.A,{table:v,database:f,user:p}),(0,s.jsx)(o.A,{user:p,entries:A,database:f,table:v,setTargetEntry:N,dbSchemaData:j,richTextEditors:y,dataTypes:F,query:S,confirmedDelegetedUser:E,jsonTextEditors:T,search:!0}),_>20&&(0,s.jsx)(g,{activeEntries:A,setActiveEntries:C,database:f,table:v,entriesCount:_})]})}function g(e){let{activeEntries:t,setActiveEntries:l,database:i,table:d,entriesCount:r}=e,c=n.useContext(w),o=n.useRef(),u=n.useRef(1),m=20*Number(u.current);return(n.useEffect(()=>{function e(e,t){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"),t=document.getElementById("entries-search-field-select"),s={tableName:d.tableName,dbName:i.db_slug,page:u.current,tableSchema:d,search:e?e.value:void 0,searchField:t?t.value:void 0,delegated:!!c.query.delegated};(0,f.A)("/api/infiniteScroll",{method:"POST",body:s},!0).then(e=>{e.success&&(e.page&&(u.current=e.page),window.clearTimeout(a),a=setTimeout(()=>{var t,a;(null===(t=e.data)||void 0===t?void 0:t[0])&&(null===(a=e.data)||void 0===a?void 0:a[0])&&l(t=>t?[...t,...e.data]:null)},500))}).catch(e=>{console.log("Infinite Scroll Error =>",e)}).finally(()=>{console.log("Infinite Scroll Done. Page",u.current)})}}let t={rootMargin:"0px 0px 0px 0px"};setTimeout(()=>{requestAnimationFrame(()=>{let l=new IntersectionObserver(e,t);o.current&&l.observe(o.current)})},1e3)},[]),m>=r)?(0,s.jsx)(n.Fragment,{}):(0,s.jsx)("div",{className:"w-full flex items-center justify-center",ref:o,children:(0,s.jsx)(p.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}var j=l(5897),N=l(5107),y=!0;let w=n.createContext({});function T(e){let{user:t,database:l,table:a,dbSchemaData:d,entries:r,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"})]}),[p,f]=n.useState(null),[x,b]=n.useState(r),g=n.useRef("title"),y=n.useRef(null),T=n.useRef([]),S=n.useRef([]);return(0,s.jsx)(i.A,{head:h,user:t,extraHeaderContent:(0,s.jsx)(j.A,{database:l,query:c,confirmedDelegetedUser:o,user:t}),children:(0,s.jsxs)(w.Provider,{value:{user:t,database:l,table:a,dbSchemaData:d,entries:r,targetEntry:p,setTargetEntry:f,richTextEditors:T,jsonTextEditors:S,query:c,confirmedDelegetedUser:o,activeEntries:x,setActiveEntries:b,targetField:g,searchTerm:y,entriesCount:u},children:[(0,s.jsx)(v,{}),(0,s.jsx)(N.A,{snug:!0})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/trace b/dsql-app/.local_dist/trace index 1ac7ddf..e3d6185 100644 --- a/dsql-app/.local_dist/trace +++ b/dsql-app/.local_dist/trace @@ -1,28 +1,28 @@ -[{"name":"generate-buildid","duration":175,"timestamp":40878219426,"id":4,"parentId":1,"tags":{},"startTime":1733737088584,"traceId":"abc7307b6d44cd6e"},{"name":"load-custom-routes","duration":275,"timestamp":40878219714,"id":5,"parentId":1,"tags":{},"startTime":1733737088585,"traceId":"abc7307b6d44cd6e"},{"name":"create-dist-dir","duration":39085,"timestamp":40878278307,"id":6,"parentId":1,"tags":{},"startTime":1733737088643,"traceId":"abc7307b6d44cd6e"},{"name":"verify-typescript-setup","duration":217388,"timestamp":40878318468,"id":7,"parentId":1,"tags":{},"startTime":1733737088683,"traceId":"abc7307b6d44cd6e"},{"name":"collect-pages","duration":3993,"timestamp":40878536260,"id":8,"parentId":1,"tags":{},"startTime":1733737088901,"traceId":"abc7307b6d44cd6e"},{"name":"create-pages-mapping","duration":1227,"timestamp":40878542554,"id":9,"parentId":1,"tags":{},"startTime":1733737088907,"traceId":"abc7307b6d44cd6e"},{"name":"public-dir-conflict-check","duration":6896,"timestamp":40878543926,"id":10,"parentId":1,"tags":{},"startTime":1733737088909,"traceId":"abc7307b6d44cd6e"},{"name":"generate-routes-manifest","duration":4197,"timestamp":40878551030,"id":11,"parentId":1,"tags":{},"startTime":1733737088916,"traceId":"abc7307b6d44cd6e"},{"name":"create-entrypoints","duration":120871,"timestamp":40878559784,"id":14,"parentId":1,"tags":{},"startTime":1733737088925,"traceId":"abc7307b6d44cd6e"},{"name":"generate-webpack-config","duration":233732,"timestamp":40878680714,"id":15,"parentId":13,"tags":{},"startTime":1733737089046,"traceId":"abc7307b6d44cd6e"},{"name":"next-trace-entrypoint-plugin","duration":2109,"timestamp":40879000942,"id":17,"parentId":16,"tags":{},"startTime":1733737089366,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":114651,"timestamp":40879182045,"id":211,"parentId":20,"tags":{"name":"/app/pages/_document.js","layer":null},"startTime":1733737089547,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":137429,"timestamp":40879184551,"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.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089549,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":138457,"timestamp":40879186590,"id":213,"parentId":21,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089551,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":140333,"timestamp":40879186844,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089552,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":141190,"timestamp":40879187068,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089552,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":141065,"timestamp":40879187925,"id":216,"parentId":24,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089553,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":141775,"timestamp":40879188127,"id":217,"parentId":25,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089553,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":142407,"timestamp":40879188314,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089553,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":33920,"timestamp":40879303466,"id":219,"parentId":27,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089668,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":34810,"timestamp":40879303882,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089669,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":35445,"timestamp":40879304188,"id":221,"parentId":29,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089669,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":36359,"timestamp":40879304366,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089669,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":37119,"timestamp":40879304566,"id":223,"parentId":31,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089669,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":37818,"timestamp":40879304711,"id":224,"parentId":32,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":38571,"timestamp":40879304861,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":39300,"timestamp":40879304986,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":39837,"timestamp":40879305292,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":40647,"timestamp":40879305154,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":41179,"timestamp":40879305406,"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%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":41791,"timestamp":40879305566,"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%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089670,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":42230,"timestamp":40879305695,"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%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":42749,"timestamp":40879305810,"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%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":43161,"timestamp":40879305949,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":43562,"timestamp":40879306075,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":44041,"timestamp":40879306212,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":44410,"timestamp":40879306344,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":44745,"timestamp":40879306512,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":45064,"timestamp":40879306645,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089671,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":45467,"timestamp":40879306767,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":45905,"timestamp":40879306892,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":46294,"timestamp":40879307012,"id":241,"parentId":49,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":46810,"timestamp":40879307119,"id":242,"parentId":50,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":47437,"timestamp":40879307223,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":47957,"timestamp":40879307321,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":48569,"timestamp":40879307419,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":49149,"timestamp":40879307518,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":49533,"timestamp":40879307803,"id":248,"parentId":56,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":50260,"timestamp":40879307619,"id":247,"parentId":55,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089672,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":50456,"timestamp":40879308030,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":51065,"timestamp":40879307920,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":51376,"timestamp":40879308136,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":51789,"timestamp":40879308253,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":52167,"timestamp":40879308368,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":52569,"timestamp":40879308467,"id":254,"parentId":62,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":52984,"timestamp":40879308574,"id":255,"parentId":63,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":53417,"timestamp":40879308666,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089673,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":53778,"timestamp":40879308859,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":54408,"timestamp":40879308765,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":54801,"timestamp":40879308957,"id":259,"parentId":67,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":55234,"timestamp":40879309054,"id":260,"parentId":68,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":55705,"timestamp":40879309146,"id":261,"parentId":69,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":56079,"timestamp":40879309266,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":56329,"timestamp":40879309451,"id":263,"parentId":71,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":56665,"timestamp":40879309555,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":56992,"timestamp":40879309650,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089674,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":57309,"timestamp":40879309747,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":57623,"timestamp":40879309840,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":57927,"timestamp":40879309943,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":58244,"timestamp":40879310040,"id":269,"parentId":77,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":58524,"timestamp":40879310132,"id":270,"parentId":78,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":58681,"timestamp":40879310342,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":59211,"timestamp":40879310248,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":59417,"timestamp":40879310431,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":59714,"timestamp":40879310521,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":60101,"timestamp":40879310612,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":60443,"timestamp":40879310700,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":60802,"timestamp":40879310793,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":61206,"timestamp":40879310884,"id":278,"parentId":86,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":61567,"timestamp":40879310998,"id":279,"parentId":87,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":61841,"timestamp":40879311198,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":62213,"timestamp":40879311302,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":62933,"timestamp":40879311100,"id":280,"parentId":88,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":63086,"timestamp":40879311400,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":63461,"timestamp":40879311499,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":63836,"timestamp":40879311592,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089676,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":64179,"timestamp":40879311689,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":64404,"timestamp":40879311908,"id":287,"parentId":95,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":64669,"timestamp":40879312025,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":64997,"timestamp":40879312124,"id":289,"parentId":97,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":65333,"timestamp":40879312231,"id":290,"parentId":98,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":65658,"timestamp":40879312323,"id":291,"parentId":99,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":65978,"timestamp":40879312413,"id":292,"parentId":100,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":66179,"timestamp":40879312615,"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%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":66476,"timestamp":40879312716,"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%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":67126,"timestamp":40879312506,"id":293,"parentId":101,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089677,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":67113,"timestamp":40879312913,"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%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":67432,"timestamp":40879313005,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":67731,"timestamp":40879313097,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":68405,"timestamp":40879312808,"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%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":68412,"timestamp":40879313187,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module","duration":68911,"timestamp":40879313275,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":69248,"timestamp":40879313365,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":69572,"timestamp":40879313456,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":69892,"timestamp":40879313639,"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%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089678,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":70235,"timestamp":40879313750,"id":305,"parentId":113,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":70620,"timestamp":40879313843,"id":306,"parentId":114,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":70945,"timestamp":40879313959,"id":307,"parentId":115,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":78592,"timestamp":40879316484,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089681,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14072,"timestamp":40879464562,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089829,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14345,"timestamp":40879464748,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089830,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":11552,"timestamp":40879470196,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089835,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":11775,"timestamp":40879470372,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089835,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12070,"timestamp":40879470472,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089835,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12398,"timestamp":40879470558,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089835,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12710,"timestamp":40879470634,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089835,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13058,"timestamp":40879470712,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13366,"timestamp":40879470787,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13659,"timestamp":40879470862,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13955,"timestamp":40879470940,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14253,"timestamp":40879471013,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14593,"timestamp":40879471082,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14896,"timestamp":40879471159,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":15191,"timestamp":40879471235,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089836,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":16694,"timestamp":40879473838,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":16979,"timestamp":40879474010,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17302,"timestamp":40879474104,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17646,"timestamp":40879474199,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":18397,"timestamp":40879474281,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":19074,"timestamp":40879474381,"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%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":19723,"timestamp":40879474465,"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%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089839,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":5177,"timestamp":40879514392,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089879,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":5760,"timestamp":40879514597,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089879,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":6460,"timestamp":40879514699,"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%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089880,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":7231,"timestamp":40879514792,"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%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089880,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":7938,"timestamp":40879514879,"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%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089880,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13446,"timestamp":40879517896,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089883,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14100,"timestamp":40879518015,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089883,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14831,"timestamp":40879518106,"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%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089883,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":15621,"timestamp":40879518183,"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%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089883,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":7437,"timestamp":40879538310,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089903,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":7924,"timestamp":40879538495,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089903,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":8496,"timestamp":40879540981,"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%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":9049,"timestamp":40879541097,"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%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":9658,"timestamp":40879541194,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10332,"timestamp":40879541276,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10919,"timestamp":40879541357,"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-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":11490,"timestamp":40879541442,"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%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12297,"timestamp":40879541518,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13137,"timestamp":40879541591,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089906,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13946,"timestamp":40879541688,"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%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089907,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17483,"timestamp":40879543071,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":18020,"timestamp":40879543188,"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%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":20010,"timestamp":40879543273,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":20858,"timestamp":40879543365,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":21516,"timestamp":40879543446,"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%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":22185,"timestamp":40879543522,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":22860,"timestamp":40879543603,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089908,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":28019,"timestamp":40879544544,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089909,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":9107,"timestamp":40879582502,"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%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":9528,"timestamp":40879582760,"id":360,"parentId":169,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10091,"timestamp":40879582893,"id":361,"parentId":170,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10326,"timestamp":40879583012,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10613,"timestamp":40879583117,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":11000,"timestamp":40879583228,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":11376,"timestamp":40879583331,"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-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":11807,"timestamp":40879583427,"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-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12150,"timestamp":40879583536,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12510,"timestamp":40879583622,"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%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12806,"timestamp":40879583693,"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%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13351,"timestamp":40879583769,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":13888,"timestamp":40879583841,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14423,"timestamp":40879583911,"id":372,"parentId":181,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14977,"timestamp":40879583992,"id":373,"parentId":182,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":15619,"timestamp":40879584064,"id":374,"parentId":183,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":16162,"timestamp":40879584137,"id":375,"parentId":184,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":16643,"timestamp":40879584214,"id":376,"parentId":185,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17081,"timestamp":40879584285,"id":377,"parentId":186,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17537,"timestamp":40879584354,"id":378,"parentId":187,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17986,"timestamp":40879584434,"id":379,"parentId":188,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":18487,"timestamp":40879584505,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089949,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":22326,"timestamp":40879586896,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":23011,"timestamp":40879586993,"id":382,"parentId":191,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":23513,"timestamp":40879587102,"id":383,"parentId":192,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":24035,"timestamp":40879587169,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":24517,"timestamp":40879587234,"id":385,"parentId":194,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":25104,"timestamp":40879587326,"id":386,"parentId":195,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":25682,"timestamp":40879587394,"id":387,"parentId":196,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":26243,"timestamp":40879587460,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":26924,"timestamp":40879587533,"id":389,"parentId":198,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":27434,"timestamp":40879587658,"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%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089952,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":28158,"timestamp":40879587763,"id":391,"parentId":200,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737089953,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":231,"timestamp":40879650004,"id":402,"parentId":211,"tags":{"name":"react/jsx-runtime","layer":null},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":21,"timestamp":40879650268,"id":403,"parentId":211,"tags":{"name":"react","layer":null},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6065,"timestamp":40879650306,"id":404,"parentId":136,"tags":{"name":"/app/pages/_app.js","layer":null},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6298,"timestamp":40879653071,"id":413,"parentId":213,"tags":{"name":"/app/pages/404.jsx","layer":null},"startTime":1733737090018,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10986,"timestamp":40879653201,"id":415,"parentId":215,"tags":{"name":"/app/pages/api/acceptUserInvitation.js","layer":"api"},"startTime":1733737090018,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13084,"timestamp":40879653139,"id":414,"parentId":214,"tags":{"name":"/app/pages/500.jsx","layer":null},"startTime":1733737090018,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":21669,"timestamp":40879645946,"id":392,"parentId":201,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":22415,"timestamp":40879646145,"id":393,"parentId":202,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":23254,"timestamp":40879646250,"id":394,"parentId":203,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":24260,"timestamp":40879646338,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module","duration":25625,"timestamp":40879646458,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":26589,"timestamp":40879646541,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":27580,"timestamp":40879646622,"id":398,"parentId":207,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":28476,"timestamp":40879646709,"id":399,"parentId":208,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090012,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":29456,"timestamp":40879646784,"id":400,"parentId":209,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090012,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":32058,"timestamp":40879649797,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32719,"timestamp":40879650439,"id":406,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":null},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33191,"timestamp":40879650475,"id":407,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":"api"},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33730,"timestamp":40879650391,"id":405,"parentId":211,"tags":{"name":"/app/node_modules/next/document.js","layer":null},"startTime":1733737090015,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33806,"timestamp":40879651041,"id":409,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":null},"startTime":1733737090016,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32646,"timestamp":40879652839,"id":410,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":"api"},"startTime":1733737090018,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38292,"timestamp":40879652890,"id":411,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/module.compiled.js","layer":null},"startTime":1733737090018,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38918,"timestamp":40879653012,"id":412,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js","layer":"api"},"startTime":1733737090018,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45273,"timestamp":40879650977,"id":408,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1733737090016,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5816,"timestamp":40879719619,"id":417,"parentId":217,"tags":{"name":"/app/pages/api/addAdminUserUser.js","layer":"api"},"startTime":1733737090084,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7579,"timestamp":40879719670,"id":418,"parentId":218,"tags":{"name":"/app/pages/api/addDbUser.js","layer":"api"},"startTime":1733737090084,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10020,"timestamp":40879719495,"id":416,"parentId":216,"tags":{"name":"/app/pages/api/addApiKey.js","layer":"api"},"startTime":1733737090084,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9236,"timestamp":40879722184,"id":421,"parentId":221,"tags":{"name":"/app/pages/api/addNewMediaFolder.js","layer":"api"},"startTime":1733737090087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11641,"timestamp":40879722018,"id":419,"parentId":219,"tags":{"name":"/app/pages/api/addTableEntry.js","layer":"api"},"startTime":1733737090087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13291,"timestamp":40879722128,"id":420,"parentId":220,"tags":{"name":"/app/pages/api/addSocialLogin.js","layer":"api"},"startTime":1733737090087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18987,"timestamp":40879722225,"id":422,"parentId":222,"tags":{"name":"/app/pages/api/addUsersTableToDatabase.js","layer":"api"},"startTime":1733737090087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5552,"timestamp":40879761062,"id":424,"parentId":224,"tags":{"name":"/app/pages/api/addUserUser.js","layer":"api"},"startTime":1733737090126,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8301,"timestamp":40879760960,"id":423,"parentId":223,"tags":{"name":"/app/pages/api/addUserTable.js","layer":"api"},"startTime":1733737090126,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11237,"timestamp":40879763650,"id":425,"parentId":225,"tags":{"name":"/app/pages/api/admin/addUserBackup.js","layer":"api"},"startTime":1733737090128,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3783,"timestamp":40879783829,"id":426,"parentId":226,"tags":{"name":"/app/pages/api/admin/clearErrorLogs.js","layer":"api"},"startTime":1733737090149,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4796,"timestamp":40879783942,"id":427,"parentId":227,"tags":{"name":"/app/pages/api/admin/clientError.js","layer":"api"},"startTime":1733737090149,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6843,"timestamp":40879785962,"id":429,"parentId":229,"tags":{"name":"/app/pages/api/admin/getTablesForUserDatabase.js","layer":"api"},"startTime":1733737090151,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8482,"timestamp":40879785840,"id":428,"parentId":228,"tags":{"name":"/app/pages/api/admin/createNewBackup.js","layer":"api"},"startTime":1733737090151,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9787,"timestamp":40879786019,"id":430,"parentId":231,"tags":{"name":"/app/pages/api/admin/getUserData.js","layer":"api"},"startTime":1733737090151,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7000,"timestamp":40879789682,"id":433,"parentId":234,"tags":{"name":"/app/pages/api/admin/grabErrorLogs.js","layer":"api"},"startTime":1733737090155,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7796,"timestamp":40879789632,"id":432,"parentId":233,"tags":{"name":"/app/pages/api/admin/grabBackups.js","layer":"api"},"startTime":1733737090154,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8703,"timestamp":40879789738,"id":434,"parentId":235,"tags":{"name":"/app/pages/api/admin/grabFile.js","layer":"api"},"startTime":1733737090155,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9836,"timestamp":40879789520,"id":431,"parentId":232,"tags":{"name":"/app/pages/api/admin/getUserBackups.js","layer":"api"},"startTime":1733737090154,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11290,"timestamp":40879789777,"id":435,"parentId":230,"tags":{"name":"/app/pages/api/admin/docs/[action].js","layer":"api"},"startTime":1733737090155,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3059,"timestamp":40879815364,"id":436,"parentId":239,"tags":{"name":"/app/pages/api/changeDbUserPassword.js","layer":"api"},"startTime":1733737090180,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2970,"timestamp":40879818712,"id":437,"parentId":241,"tags":{"name":"/app/pages/api/clientSideAuth.js","layer":"api"},"startTime":1733737090184,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3593,"timestamp":40879818815,"id":438,"parentId":242,"tags":{"name":"/app/pages/api/checkExistingFolder.js","layer":"api"},"startTime":1733737090184,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2327,"timestamp":40879822630,"id":439,"parentId":240,"tags":{"name":"/app/pages/api/checkDuplicateData.js","layer":"api"},"startTime":1733737090187,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3107,"timestamp":40879822780,"id":441,"parentId":236,"tags":{"name":"/app/pages/api/admin/loginSuUser.js","layer":"api"},"startTime":1733737090188,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5642,"timestamp":40879822819,"id":442,"parentId":237,"tags":{"name":"/app/pages/api/admin/runUserDbQuery.js","layer":"api"},"startTime":1733737090188,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6478,"timestamp":40879822736,"id":440,"parentId":248,"tags":{"name":"/app/pages/api/contact.js","layer":"api"},"startTime":1733737090188,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3919,"timestamp":40879834667,"id":446,"parentId":251,"tags":{"name":"/app/pages/api/deleteInvitation.js","layer":"api"},"startTime":1733737090199,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4855,"timestamp":40879834630,"id":445,"parentId":250,"tags":{"name":"/app/pages/api/deleteDbUser.js","layer":"api"},"startTime":1733737090199,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5883,"timestamp":40879834581,"id":444,"parentId":238,"tags":{"name":"/app/pages/api/admin/updateEnv.js","layer":"api"},"startTime":1733737090199,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6814,"timestamp":40879834703,"id":447,"parentId":249,"tags":{"name":"/app/pages/api/deleteApiKey.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7551,"timestamp":40879834770,"id":449,"parentId":253,"tags":{"name":"/app/pages/api/deleteTableEntry.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10052,"timestamp":40879834483,"id":443,"parentId":247,"tags":{"name":"/app/pages/api/createUserDatabase.js","layer":"api"},"startTime":1733737090199,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11755,"timestamp":40879834734,"id":448,"parentId":252,"tags":{"name":"/app/pages/api/deleteMediaFolder.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17341,"timestamp":40879834802,"id":450,"parentId":254,"tags":{"name":"/app/pages/api/deleteUserDatabase.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18486,"timestamp":40879834832,"id":451,"parentId":256,"tags":{"name":"/app/pages/api/deleteUserMedia.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":21467,"timestamp":40879834861,"id":452,"parentId":255,"tags":{"name":"/app/pages/api/deleteUser.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20068,"timestamp":40879836710,"id":455,"parentId":259,"tags":{"name":"/app/pages/api/exportDatabase.js","layer":"api"},"startTime":1733737090202,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":23427,"timestamp":40879834896,"id":453,"parentId":257,"tags":{"name":"/app/pages/api/deleteUserTable.js","layer":"api"},"startTime":1733737090200,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":22492,"timestamp":40879836633,"id":454,"parentId":258,"tags":{"name":"/app/pages/api/downloadDatabaseSchema.js","layer":"api"},"startTime":1733737090201,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":23389,"timestamp":40879836787,"id":457,"parentId":260,"tags":{"name":"/app/pages/api/fetch-entries-basic.js","layer":"api"},"startTime":1733737090202,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24027,"timestamp":40879836832,"id":458,"parentId":262,"tags":{"name":"/app/pages/api/getDatabaseTables.js","layer":"api"},"startTime":1733737090202,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24616,"timestamp":40879836868,"id":459,"parentId":263,"tags":{"name":"/app/pages/api/deleteUserUser.js","layer":"api"},"startTime":1733737090202,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":26068,"timestamp":40879836752,"id":456,"parentId":261,"tags":{"name":"/app/pages/api/get-authorized-databases.js","layer":"api"},"startTime":1733737090202,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4015,"timestamp":40879884778,"id":460,"parentId":264,"tags":{"name":"/app/pages/api/getDelegatedDatabaseToken.js","layer":"api"},"startTime":1733737090250,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6813,"timestamp":40879886378,"id":461,"parentId":265,"tags":{"name":"/app/pages/api/getDelegatedDatabases.js","layer":"api"},"startTime":1733737090251,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8442,"timestamp":40879886455,"id":462,"parentId":266,"tags":{"name":"/app/pages/api/getDiskUsage.js","layer":"api"},"startTime":1733737090251,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2964,"timestamp":40879898099,"id":466,"parentId":270,"tags":{"name":"/app/pages/api/getUserMedia.js","layer":"api"},"startTime":1733737090263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3725,"timestamp":40879897902,"id":463,"parentId":267,"tags":{"name":"/app/pages/api/getUserDatabaseTables.js","layer":"api"},"startTime":1733737090263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4145,"timestamp":40879898054,"id":465,"parentId":269,"tags":{"name":"/app/pages/api/getUserSchemaData.js","layer":"api"},"startTime":1733737090263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4742,"timestamp":40879898007,"id":464,"parentId":268,"tags":{"name":"/app/pages/api/getUserDatabases.js","layer":"api"},"startTime":1733737090263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4331,"timestamp":40879899450,"id":468,"parentId":271,"tags":{"name":"/app/pages/api/healthcheck.js","layer":"api"},"startTime":1733737090264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6800,"timestamp":40879898150,"id":467,"parentId":272,"tags":{"name":"/app/pages/api/importDatabase.js","layer":"api"},"startTime":1733737090263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3277,"timestamp":40879909775,"id":470,"parentId":244,"tags":{"name":"/app/pages/api/connect/handshake.js","layer":"api"},"startTime":1733737090275,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4008,"timestamp":40879909683,"id":469,"parentId":243,"tags":{"name":"/app/pages/api/connect/disconnect.js","layer":"api"},"startTime":1733737090275,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4543,"timestamp":40879909849,"id":472,"parentId":246,"tags":{"name":"/app/pages/api/connect/verify.js","layer":"api"},"startTime":1733737090275,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6024,"timestamp":40879909816,"id":471,"parentId":245,"tags":{"name":"/app/pages/api/connect/index.js","layer":"api"},"startTime":1733737090275,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7323,"timestamp":40879909887,"id":473,"parentId":273,"tags":{"name":"/app/pages/api/importDatabaseSchema.js","layer":"api"},"startTime":1733737090275,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11484,"timestamp":40879911430,"id":477,"parentId":276,"tags":{"name":"/app/pages/api/logoutUser.js","layer":"api"},"startTime":1733737090276,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12429,"timestamp":40879911393,"id":476,"parentId":278,"tags":{"name":"/app/pages/api/purgeDb.js","layer":"api"},"startTime":1733737090276,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13774,"timestamp":40879911269,"id":474,"parentId":274,"tags":{"name":"/app/pages/api/infiniteScroll.js","layer":"api"},"startTime":1733737090276,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14493,"timestamp":40879911465,"id":478,"parentId":283,"tags":{"name":"/app/pages/api/queryEntriesSearchTerm.js","layer":"api"},"startTime":1733737090276,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16566,"timestamp":40879911346,"id":475,"parentId":275,"tags":{"name":"/app/pages/api/loginUser.js","layer":"api"},"startTime":1733737090276,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17461,"timestamp":40879932345,"id":480,"parentId":284,"tags":{"name":"/app/pages/api/reAuthenticateUser.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17847,"timestamp":40879932422,"id":482,"parentId":288,"tags":{"name":"/app/pages/api/resetDelegatedDatabaseToken.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18748,"timestamp":40879932247,"id":479,"parentId":285,"tags":{"name":"/app/pages/api/refreshEntry.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18951,"timestamp":40879932465,"id":483,"parentId":287,"tags":{"name":"/app/pages/api/resetPassword.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19593,"timestamp":40879932525,"id":485,"parentId":290,"tags":{"name":"/app/pages/api/sendEmailVerificationLink.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20267,"timestamp":40879932495,"id":484,"parentId":289,"tags":{"name":"/app/pages/api/runUserDbQuery.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":22723,"timestamp":40879932386,"id":481,"parentId":286,"tags":{"name":"/app/pages/api/registerUser.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":23456,"timestamp":40879932604,"id":487,"parentId":293,"tags":{"name":"/app/pages/api/sendPasswordResetLink.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24839,"timestamp":40879932555,"id":486,"parentId":291,"tags":{"name":"/app/pages/api/renameMedia.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":25404,"timestamp":40879932713,"id":490,"parentId":280,"tags":{"name":"/app/pages/api/media/getPrivateMedia.js","layer":"api"},"startTime":1733737090298,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27069,"timestamp":40879932649,"id":488,"parentId":303,"tags":{"name":"/app/pages/api/sync-table-data.js","layer":"api"},"startTime":1733737090297,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27649,"timestamp":40879932742,"id":491,"parentId":292,"tags":{"name":"/app/pages/api/social-login/facebook-auth.js","layer":"api"},"startTime":1733737090298,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":29968,"timestamp":40879932679,"id":489,"parentId":277,"tags":{"name":"/app/pages/api/media/addPrivateMedia.js","layer":"api"},"startTime":1733737090298,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31033,"timestamp":40879932771,"id":492,"parentId":294,"tags":{"name":"/app/pages/api/social-login/google-auth.js","layer":"api"},"startTime":1733737090298,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31910,"timestamp":40879932799,"id":493,"parentId":295,"tags":{"name":"/app/pages/api/social-login/github-auth.js","layer":"api"},"startTime":1733737090298,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32606,"timestamp":40879932832,"id":494,"parentId":305,"tags":{"name":"/app/pages/api/updateAdminUserAccess.js","layer":"api"},"startTime":1733737090298,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9770,"timestamp":40879977989,"id":495,"parentId":307,"tags":{"name":"/app/pages/api/unsubscribe.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10510,"timestamp":40879978117,"id":496,"parentId":308,"tags":{"name":"/app/pages/api/updateClonedTableForeignKeys.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11225,"timestamp":40879978210,"id":498,"parentId":281,"tags":{"name":"/app/pages/api/query/[user_id]/get.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12315,"timestamp":40879978168,"id":497,"parentId":279,"tags":{"name":"/app/pages/api/query/[user_id]/get-schema.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12610,"timestamp":40879978294,"id":500,"parentId":297,"tags":{"name":"/app/pages/api/social-login/utils/checkEmail.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12929,"timestamp":40879978333,"id":501,"parentId":298,"tags":{"name":"/app/pages/api/social-login/utils/getEmailFromSocialId.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13749,"timestamp":40879978255,"id":499,"parentId":282,"tags":{"name":"/app/pages/api/query/[user_id]/update-schema-from-single-database.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13985,"timestamp":40879978368,"id":502,"parentId":296,"tags":{"name":"/app/pages/api/social-login/utils/checkSocialId.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-js","duration":15322,"timestamp":40879978410,"id":503,"parentId":299,"tags":{"name":"/app/pages/api/sql-users/create.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16038,"timestamp":40879978446,"id":504,"parentId":300,"tags":{"name":"/app/pages/api/sql-users/delete.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16466,"timestamp":40879978517,"id":506,"parentId":302,"tags":{"name":"/app/pages/api/stream/[path].js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17546,"timestamp":40879978481,"id":505,"parentId":301,"tags":{"name":"/app/pages/api/sql-users/update.js","layer":"api"},"startTime":1733737090343,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":40,"timestamp":40880017469,"id":517,"parentId":415,"tags":{"name":"fs","layer":null},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7435,"timestamp":40880016974,"id":507,"parentId":304,"tags":{"name":"/app/pages/api/test/mail.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7953,"timestamp":40880017086,"id":508,"parentId":310,"tags":{"name":"/app/pages/api/updateDbUser.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8671,"timestamp":40880017136,"id":509,"parentId":311,"tags":{"name":"/app/pages/api/updateTableEntry.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9639,"timestamp":40880017184,"id":510,"parentId":309,"tags":{"name":"/app/pages/api/updateDbSchemaDataForUser.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9921,"timestamp":40880017223,"id":511,"parentId":306,"tags":{"name":"/app/pages/api/test/cors.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10853,"timestamp":40880017262,"id":512,"parentId":312,"tags":{"name":"/app/pages/api/updateUser.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11403,"timestamp":40880017401,"id":515,"parentId":315,"tags":{"name":"/app/pages/api/updateUserUser.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12242,"timestamp":40880017433,"id":516,"parentId":316,"tags":{"name":"/app/pages/api/user-schema/replace-database-schema.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13607,"timestamp":40880017368,"id":514,"parentId":314,"tags":{"name":"/app/pages/api/updateUserTable.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14786,"timestamp":40880017297,"id":513,"parentId":313,"tags":{"name":"/app/pages/api/updateUserDatabase.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15356,"timestamp":40880017549,"id":518,"parentId":328,"tags":{"name":"/app/pages/about.jsx","layer":null},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15866,"timestamp":40880017597,"id":519,"parentId":317,"tags":{"name":"/app/pages/api/user/[user_id]/add-user.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16265,"timestamp":40880017698,"id":522,"parentId":320,"tags":{"name":"/app/pages/api/user/[user_id]/github-login.js","layer":"api"},"startTime":1733737090383,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18576,"timestamp":40880017661,"id":521,"parentId":318,"tags":{"name":"/app/pages/api/user/[user_id]/delete-user.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19233,"timestamp":40880017630,"id":520,"parentId":319,"tags":{"name":"/app/pages/api/user/[user_id]/get-user.js","layer":"api"},"startTime":1733737090382,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19811,"timestamp":40880017728,"id":523,"parentId":321,"tags":{"name":"/app/pages/api/user/[user_id]/google-login.js","layer":"api"},"startTime":1733737090383,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47,"timestamp":40880071344,"id":530,"parentId":411,"tags":{"name":"next/dist/compiled/next-server/pages.runtime.prod.js","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18,"timestamp":40880071426,"id":531,"parentId":412,"tags":{"name":"next/dist/compiled/next-server/pages-api.runtime.prod.js","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17,"timestamp":40880071730,"id":538,"parentId":416,"tags":{"name":"path","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":12,"timestamp":40880071771,"id":539,"parentId":416,"tags":{"name":"child_process","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":16,"timestamp":40880071955,"id":544,"parentId":415,"tags":{"name":"lodash","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7504,"timestamp":40880070983,"id":524,"parentId":322,"tags":{"name":"/app/pages/api/user/[user_id]/grab-google-user-from-token.js","layer":"api"},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7996,"timestamp":40880071212,"id":527,"parentId":325,"tags":{"name":"/app/pages/api/user/[user_id]/send-email-code.js","layer":"api"},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8697,"timestamp":40880071169,"id":526,"parentId":326,"tags":{"name":"/app/pages/api/user/[user_id]/update-user.js","layer":"api"},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9340,"timestamp":40880071114,"id":525,"parentId":323,"tags":{"name":"/app/pages/api/user/[user_id]/login-user.js","layer":"api"},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1067788,"timestamp":40879012977,"id":79,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1067711,"timestamp":40879013094,"id":114,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1067755,"timestamp":40879013080,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15079,"timestamp":40880071262,"id":528,"parentId":324,"tags":{"name":"/app/pages/api/user/[user_id]/reauth-user.js","layer":"api"},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15872,"timestamp":40880071305,"id":529,"parentId":327,"tags":{"name":"/app/pages/api/webhooks/github-push.js","layer":"api"},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17112,"timestamp":40880071535,"id":533,"parentId":330,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.jsx","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18124,"timestamp":40880071581,"id":534,"parentId":329,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.jsx","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19333,"timestamp":40880071617,"id":535,"parentId":332,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.jsx","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20329,"timestamp":40880071651,"id":536,"parentId":333,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.jsx","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21443,"timestamp":40880071695,"id":537,"parentId":334,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22259,"timestamp":40880071837,"id":541,"parentId":335,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23280,"timestamp":40880071880,"id":542,"parentId":331,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24497,"timestamp":40880071922,"id":543,"parentId":336,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25358,"timestamp":40880071988,"id":545,"parentId":338,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26805,"timestamp":40880072028,"id":546,"parentId":337,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28043,"timestamp":40880072074,"id":547,"parentId":339,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29125,"timestamp":40880072108,"id":548,"parentId":343,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30082,"timestamp":40880072187,"id":550,"parentId":342,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30918,"timestamp":40880072225,"id":551,"parentId":351,"tags":{"name":"/app/pages/admin/[user_id]/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31435,"timestamp":40880072379,"id":553,"parentId":352,"tags":{"name":"/app/pages/admin/[user_id]/settings.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32881,"timestamp":40880072258,"id":552,"parentId":340,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33797,"timestamp":40880072416,"id":554,"parentId":344,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34732,"timestamp":40880072464,"id":555,"parentId":350,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35429,"timestamp":40880072494,"id":556,"parentId":349,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36313,"timestamp":40880072531,"id":557,"parentId":353,"tags":{"name":"/app/pages/admin/[user_id]/schema.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":37345,"timestamp":40880072564,"id":558,"parentId":346,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":38058,"timestamp":40880072611,"id":559,"parentId":347,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39343,"timestamp":40880072682,"id":561,"parentId":341,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx","layer":null},"startTime":1733737090438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":40585,"timestamp":40880072646,"id":560,"parentId":348,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.jsx","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":45464,"timestamp":40880072714,"id":562,"parentId":345,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx","layer":null},"startTime":1733737090438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":57159,"timestamp":40880071799,"id":540,"parentId":404,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":65655,"timestamp":40880072140,"id":549,"parentId":408,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1733737090437,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":82624,"timestamp":40880071456,"id":532,"parentId":405,"tags":{"name":"/app/node_modules/next/dist/pages/_document.js","layer":null},"startTime":1733737090436,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":102,"timestamp":40880266530,"id":563,"parentId":416,"tags":{"name":"generate-password","layer":null},"startTime":1733737090631,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":23,"timestamp":40880266979,"id":570,"parentId":425,"tags":{"name":"os","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5918,"timestamp":40880266814,"id":566,"parentId":357,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6746,"timestamp":40880266853,"id":567,"parentId":360,"tags":{"name":"/app/pages/admin/index.jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8138,"timestamp":40880266668,"id":564,"parentId":354,"tags":{"name":"/app/pages/admin/[user_id]/media/index.jsx","layer":null},"startTime":1733737090631,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9345,"timestamp":40880266770,"id":565,"parentId":355,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12347,"timestamp":40880266897,"id":568,"parentId":358,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13259,"timestamp":40880266937,"id":569,"parentId":356,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14197,"timestamp":40880267021,"id":571,"parentId":361,"tags":{"name":"/app/pages/admin/[user_id]/users/index.jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15220,"timestamp":40880267069,"id":572,"parentId":359,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.jsx","layer":null},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15862,"timestamp":40880267147,"id":574,"parentId":364,"tags":{"name":"/app/pages/api/fetch-media.js","layer":"api"},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16383,"timestamp":40880267180,"id":575,"parentId":363,"tags":{"name":"/app/pages/api/exportTableData.js","layer":"api"},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17670,"timestamp":40880267217,"id":576,"parentId":365,"tags":{"name":"/app/pages/api/query/[user_id]/add-image.js","layer":"api"},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24115,"timestamp":40880267251,"id":577,"parentId":366,"tags":{"name":"/app/pages/api/query/[user_id]/add-file.js","layer":"api"},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":26836,"timestamp":40880267111,"id":573,"parentId":362,"tags":{"name":"/app/pages/api/addUserMedia.js","layer":"api"},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27855,"timestamp":40880267285,"id":578,"parentId":369,"tags":{"name":"/app/pages/api/query/[user_id]/delete-file.js","layer":"api"},"startTime":1733737090632,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1307981,"timestamp":40879013287,"id":173,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12816,"timestamp":40880330731,"id":580,"parentId":367,"tags":{"name":"/app/pages/api/query/[user_id]/get-private-file.js","layer":"api"},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13426,"timestamp":40880330844,"id":582,"parentId":371,"tags":{"name":"/app/pages/contact.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14298,"timestamp":40880330604,"id":579,"parentId":368,"tags":{"name":"/app/pages/api/query/[user_id]/post.js","layer":"api"},"startTime":1733737090695,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15701,"timestamp":40880330790,"id":581,"parentId":374,"tags":{"name":"/app/pages/create-account.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16138,"timestamp":40880330964,"id":585,"parentId":377,"tags":{"name":"/app/pages/privacy.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16875,"timestamp":40880330886,"id":583,"parentId":375,"tags":{"name":"/app/pages/index.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17472,"timestamp":40880330925,"id":584,"parentId":376,"tags":{"name":"/app/pages/login.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18252,"timestamp":40880331010,"id":586,"parentId":380,"tags":{"name":"/app/pages/redirect.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18753,"timestamp":40880331080,"id":588,"parentId":370,"tags":{"name":"/app/pages/blog/index.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19324,"timestamp":40880331109,"id":589,"parentId":373,"tags":{"name":"/app/pages/docs/index.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21131,"timestamp":40880331052,"id":587,"parentId":381,"tags":{"name":"/app/pages/logout.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22009,"timestamp":40880331144,"id":590,"parentId":372,"tags":{"name":"/app/pages/docs/[page]/index.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23046,"timestamp":40880331173,"id":591,"parentId":384,"tags":{"name":"/app/pages/send-password-reset-link.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23517,"timestamp":40880331291,"id":594,"parentId":382,"tags":{"name":"/app/pages/su/console.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25002,"timestamp":40880331201,"id":592,"parentId":378,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25795,"timestamp":40880331323,"id":595,"parentId":389,"tags":{"name":"/app/pages/su/envar.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27466,"timestamp":40880331231,"id":593,"parentId":379,"tags":{"name":"/app/pages/email-verification/index.jsx","layer":null},"startTime":1733737090696,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3817,"timestamp":40880404960,"id":596,"parentId":383,"tags":{"name":"/app/pages/su/backups.jsx","layer":null},"startTime":1733737090770,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6147,"timestamp":40880409836,"id":598,"parentId":385,"tags":{"name":"/app/pages/su/docs/create-page.jsx","layer":null},"startTime":1733737090775,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6770,"timestamp":40880409739,"id":597,"parentId":391,"tags":{"name":"/app/pages/su/error-logs.jsx","layer":null},"startTime":1733737090775,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7127,"timestamp":40880409914,"id":600,"parentId":387,"tags":{"name":"/app/pages/su/docs/index.jsx","layer":null},"startTime":1733737090775,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":7950,"timestamp":40880409878,"id":599,"parentId":386,"tags":{"name":"/app/pages/su/docs/edit-page.jsx","layer":null},"startTime":1733737090775,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9753,"timestamp":40880409955,"id":601,"parentId":388,"tags":{"name":"/app/pages/su/docs/pages/index.jsx","layer":null},"startTime":1733737090775,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15776,"timestamp":40880429676,"id":603,"parentId":392,"tags":{"name":"/app/pages/su/index.jsx","layer":null},"startTime":1733737090795,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16504,"timestamp":40880429563,"id":602,"parentId":390,"tags":{"name":"/app/pages/su/docs/pages/[id].jsx","layer":null},"startTime":1733737090794,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":806,"timestamp":40880450214,"id":604,"parentId":404,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1733737090815,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":507,"timestamp":40880450607,"id":605,"parentId":404,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1733737090815,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7215,"timestamp":40880450731,"id":606,"parentId":413,"tags":{"name":"/app/functions/frontend/clientAuthUser.js","layer":null},"startTime":1733737090816,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8050,"timestamp":40880450782,"id":607,"parentId":414,"tags":{"name":"/app/functions/frontend/fetchApi.js","layer":null},"startTime":1733737090816,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6152,"timestamp":40880459109,"id":608,"parentId":415,"tags":{"name":"/app/functions/backend/userAuth.js","layer":"api"},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6863,"timestamp":40880459214,"id":609,"parentId":393,"tags":{"name":"/app/pages/su/load-balancing.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7768,"timestamp":40880459299,"id":610,"parentId":415,"tags":{"name":"/app/package-shared/functions/backend/serverError.js","layer":"api"},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14931,"timestamp":40880459446,"id":613,"parentId":395,"tags":{"name":"/app/pages/su/servers.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16031,"timestamp":40880459404,"id":612,"parentId":396,"tags":{"name":"/app/pages/su/login.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16342,"timestamp":40880459524,"id":615,"parentId":413,"tags":{"name":"/app/layouts/GeneralLayout.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17511,"timestamp":40880459485,"id":614,"parentId":404,"tags":{"name":"/app/components/ErrorBoundary.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19871,"timestamp":40880459350,"id":611,"parentId":394,"tags":{"name":"/app/pages/reset-password.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22116,"timestamp":40880459608,"id":617,"parentId":413,"tags":{"name":"/app/components/general/PageHeadTags.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22938,"timestamp":40880459570,"id":616,"parentId":398,"tags":{"name":"/app/pages/terms.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24282,"timestamp":40880459644,"id":618,"parentId":401,"tags":{"name":"/app/pages/unsubscribe.jsx","layer":null},"startTime":1733737090824,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15357,"timestamp":40880469456,"id":619,"parentId":419,"tags":{"name":"/app/functions/backend/checkUserRights.js","layer":"api"},"startTime":1733737090834,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15988,"timestamp":40880469597,"id":620,"parentId":419,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.js","layer":"api"},"startTime":1733737090834,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16718,"timestamp":40880469651,"id":621,"parentId":397,"tags":{"name":"/app/pages/su/users/[single].jsx","layer":null},"startTime":1733737090834,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5777,"timestamp":40880507005,"id":622,"parentId":399,"tags":{"name":"/app/pages/su/users/index.jsx","layer":null},"startTime":1733737090872,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":34,"timestamp":40880513270,"id":628,"parentId":470,"tags":{"name":"util","layer":null},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17,"timestamp":40880513325,"id":629,"parentId":470,"tags":{"name":"url","layer":null},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":1301,"timestamp":40880513135,"id":624,"parentId":422,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":1374,"timestamp":40880513163,"id":625,"parentId":422,"tags":{"name":"/app/package-shared/data/presets/users.json","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7825,"timestamp":40880513031,"id":623,"parentId":400,"tags":{"name":"/app/pages/su/users/new.jsx","layer":null},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8105,"timestamp":40880513353,"id":630,"parentId":425,"tags":{"name":"/app/functions/backend/suAdminUserAuth.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9069,"timestamp":40880513191,"id":626,"parentId":417,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9412,"timestamp":40880513447,"id":632,"parentId":415,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10270,"timestamp":40880513408,"id":631,"parentId":424,"tags":{"name":"/app/package-shared/functions/backend/handleNodemailer.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10970,"timestamp":40880513483,"id":633,"parentId":475,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13000,"timestamp":40880513232,"id":627,"parentId":415,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13230,"timestamp":40880513557,"id":635,"parentId":428,"tags":{"name":"/app/functions/backend/copyFolderRecursively.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13427,"timestamp":40880513624,"id":637,"parentId":435,"tags":{"name":"/app/functions/backend/admin/deleteDocPage.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13963,"timestamp":40880513591,"id":636,"parentId":435,"tags":{"name":"/app/functions/backend/admin/addDocPage.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15863,"timestamp":40880513517,"id":634,"parentId":421,"tags":{"name":"/app/package-shared/functions/backend/db/sanitizeSql.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16227,"timestamp":40880513695,"id":639,"parentId":418,"tags":{"name":"/app/package-shared/functions/dsql/hashPassword.js","layer":"api"},"startTime":1733737090879,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17154,"timestamp":40880513658,"id":638,"parentId":419,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","layer":"api"},"startTime":1733737090878,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4806,"timestamp":40880539926,"id":642,"parentId":435,"tags":{"name":"/app/functions/backend/admin/grabParentPages.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5090,"timestamp":40880539967,"id":643,"parentId":435,"tags":{"name":"/app/functions/backend/admin/grabChildPages.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5615,"timestamp":40880539883,"id":641,"parentId":435,"tags":{"name":"/app/functions/backend/admin/getSnippets.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6159,"timestamp":40880539779,"id":640,"parentId":419,"tags":{"name":"/app/functions/backend/handleTableEntryOrder.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6255,"timestamp":40880540064,"id":646,"parentId":423,"tags":{"name":"/app/package-shared/functions/backend/setUserSchemaData.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6621,"timestamp":40880540102,"id":647,"parentId":423,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7164,"timestamp":40880540133,"id":648,"parentId":452,"tags":{"name":"/app/functions/backend/deleteFolderRecursively.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7874,"timestamp":40880540000,"id":644,"parentId":435,"tags":{"name":"/app/functions/backend/admin/persistDocs.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8412,"timestamp":40880540198,"id":650,"parentId":455,"tags":{"name":"/app/functions/backend/exportDb.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8996,"timestamp":40880540227,"id":651,"parentId":439,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13871,"timestamp":40880540164,"id":649,"parentId":467,"tags":{"name":"/app/functions/backend/createDbSchemaFromDb.js","layer":"api"},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":49,"timestamp":40880555040,"id":654,"parentId":529,"tags":{"name":"http","layer":null},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14,"timestamp":40880555109,"id":655,"parentId":529,"tags":{"name":"crypto","layer":null},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9906,"timestamp":40880549764,"id":652,"parentId":480,"tags":{"name":"/app/functions/backend/reAuthUser.js","layer":"api"},"startTime":1733737090915,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11613,"timestamp":40880549884,"id":653,"parentId":422,"tags":{"name":"/app/package-shared/shell/createDbFromSchema.js","layer":"api"},"startTime":1733737090915,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7151,"timestamp":40880555273,"id":658,"parentId":447,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.js","layer":"api"},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7702,"timestamp":40880555230,"id":657,"parentId":535,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.js","layer":null},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8119,"timestamp":40880555315,"id":659,"parentId":447,"tags":{"name":"/app/package-shared/functions/backend/api-cred.js","layer":"api"},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8930,"timestamp":40880555135,"id":656,"parentId":534,"tags":{"name":"/app/functions/backend/userAuth.js","layer":null},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9193,"timestamp":40880555348,"id":660,"parentId":447,"tags":{"name":"/app/package-shared/functions/backend/db/deleteDbEntry.js","layer":"api"},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10357,"timestamp":40880555380,"id":661,"parentId":493,"tags":{"name":"/app/package-shared/shell/utils/camelJoinedtoCamelSpace.js","layer":"api"},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10811,"timestamp":40880555411,"id":662,"parentId":493,"tags":{"name":"/app/package-shared/functions/api/social-login/githubLogin.js","layer":"api"},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1555152,"timestamp":40879013160,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1557753,"timestamp":40879013004,"id":87,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17856,"timestamp":40880555447,"id":663,"parentId":491,"tags":{"name":"/app/package-shared/functions/api/social-login/handleSocialDb.js","layer":"api"},"startTime":1733737090920,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-cjs","duration":34746,"timestamp":40880540031,"id":645,"parentId":408,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","layer":null},"startTime":1733737090905,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4621,"timestamp":40880575668,"id":666,"parentId":477,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.js","layer":"api"},"startTime":1733737090940,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5384,"timestamp":40880575514,"id":664,"parentId":451,"tags":{"name":"/app/functions/backend/grabPaths.js","layer":"api"},"startTime":1733737090940,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5625,"timestamp":40880575623,"id":665,"parentId":443,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.js","layer":"api"},"startTime":1733737090940,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6215,"timestamp":40880575707,"id":667,"parentId":545,"tags":{"name":"/app/package-shared/functions/backend/serverError.js","layer":null},"startTime":1733737090941,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":32,"timestamp":40880582656,"id":677,"parentId":492,"tags":{"name":"google-auth-library","layer":null},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1569534,"timestamp":40879013296,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1571767,"timestamp":40879013145,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6156,"timestamp":40880582404,"id":671,"parentId":533,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.js","layer":null},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6626,"timestamp":40880582327,"id":669,"parentId":536,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.js","layer":null},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7289,"timestamp":40880582226,"id":668,"parentId":533,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.js","layer":null},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7637,"timestamp":40880582370,"id":670,"parentId":536,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.js","layer":null},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7775,"timestamp":40880582480,"id":673,"parentId":475,"tags":{"name":"/app/functions/backend/delay.js","layer":"api"},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8448,"timestamp":40880582443,"id":672,"parentId":470,"tags":{"name":"/app/functions/backend/dbSchemaExec.js","layer":"api"},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9076,"timestamp":40880582543,"id":675,"parentId":472,"tags":{"name":"/app/package-shared/functions/backend/httpsRequest.js","layer":"api"},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10190,"timestamp":40880582512,"id":674,"parentId":481,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.js","layer":"api"},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10706,"timestamp":40880582593,"id":676,"parentId":512,"tags":{"name":"/app/functions/backend/fsWriteImageToDisk.js","layer":"api"},"startTime":1733737090947,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11957,"timestamp":40880582747,"id":679,"parentId":488,"tags":{"name":"/app/functions/backend/importExportTableDataFn.js","layer":"api"},"startTime":1733737090948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12366,"timestamp":40880582703,"id":678,"parentId":553,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.js","layer":null},"startTime":1733737090948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13068,"timestamp":40880582788,"id":680,"parentId":488,"tags":{"name":"/app/functions/backend/delegatedUser.js","layer":"api"},"startTime":1733737090948,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11450,"timestamp":40880584937,"id":681,"parentId":481,"tags":{"name":"/app/package-shared/functions/backend/addMariadbUser.js","layer":"api"},"startTime":1733737090950,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12523,"timestamp":40880585015,"id":682,"parentId":510,"tags":{"name":"/app/functions/backend/updateSchemaData.js","layer":"api"},"startTime":1733737090950,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":857,"timestamp":40880605558,"id":686,"parentId":548,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3993,"timestamp":40880605578,"id":687,"parentId":518,"tags":{"name":"/app/components/pages/about/Hero.jsx","layer":null},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4980,"timestamp":40880605348,"id":683,"parentId":545,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js","layer":null},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5647,"timestamp":40880605474,"id":684,"parentId":498,"tags":{"name":"/app/package-shared/functions/api/query/get.js","layer":"api"},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8166,"timestamp":40880605521,"id":685,"parentId":503,"tags":{"name":"/app/package-shared/shell/mariadb-users/refreshUsersAndGrants.js","layer":"api"},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8406,"timestamp":40880605677,"id":690,"parentId":518,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.jsx","layer":null},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9218,"timestamp":40880605615,"id":688,"parentId":534,"tags":{"name":"/app/layouts/AdminLayout.jsx","layer":null},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9582,"timestamp":40880605706,"id":691,"parentId":518,"tags":{"name":"/app/components/pages/homepage/FooterCta.jsx","layer":null},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9838,"timestamp":40880605797,"id":694,"parentId":521,"tags":{"name":"/app/package-shared/functions/api/users/api-delete-user.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11724,"timestamp":40880605647,"id":689,"parentId":534,"tags":{"name":"/app/components/general/ExtraContentDatabase.jsx","layer":null},"startTime":1733737090970,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12351,"timestamp":40880605738,"id":692,"parentId":518,"tags":{"name":"/app/components/pages/homepage/MainFeaturesSection.jsx","layer":null},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12585,"timestamp":40880605859,"id":696,"parentId":520,"tags":{"name":"/app/package-shared/functions/api/users/api-get-user.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13441,"timestamp":40880605825,"id":695,"parentId":527,"tags":{"name":"/app/package-shared/functions/api/users/api-send-email-code.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14636,"timestamp":40880605767,"id":693,"parentId":519,"tags":{"name":"/app/package-shared/functions/api/users/api-create-user.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-js","duration":15807,"timestamp":40880605890,"id":697,"parentId":526,"tags":{"name":"/app/package-shared/functions/api/users/api-update-user.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17875,"timestamp":40880605973,"id":699,"parentId":523,"tags":{"name":"/app/package-shared/functions/api/users/social/api-google-login.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18931,"timestamp":40880605927,"id":698,"parentId":525,"tags":{"name":"/app/package-shared/functions/api/users/api-login.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19562,"timestamp":40880606004,"id":700,"parentId":522,"tags":{"name":"/app/package-shared/functions/api/users/social/api-github-login.js","layer":"api"},"startTime":1733737090971,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1620905,"timestamp":40879013132,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27722,"timestamp":40880611428,"id":702,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/htmlescape.js","layer":null},"startTime":1733737090976,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":28174,"timestamp":40880611344,"id":701,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/get-page-files.js","layer":null},"startTime":1733737090976,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":4709,"timestamp":40880640636,"id":706,"parentId":553,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.jsx","layer":null},"startTime":1733737091005,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":4860,"timestamp":40880645605,"id":708,"parentId":534,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.jsx","layer":null},"startTime":1733737091010,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5296,"timestamp":40880645676,"id":710,"parentId":535,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.jsx","layer":null},"startTime":1733737091011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5986,"timestamp":40880645521,"id":707,"parentId":551,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.jsx","layer":null},"startTime":1733737091010,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7974,"timestamp":40880645645,"id":709,"parentId":535,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.jsx","layer":null},"startTime":1733737091010,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8660,"timestamp":40880645739,"id":712,"parentId":528,"tags":{"name":"/app/package-shared/functions/api/users/api-reauth-user.js","layer":"api"},"startTime":1733737091011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13258,"timestamp":40880645710,"id":711,"parentId":537,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.jsx","layer":null},"startTime":1733737091011,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":35161,"timestamp":40880640594,"id":705,"parentId":549,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1733737091005,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":36533,"timestamp":40880640543,"id":704,"parentId":549,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1733737091005,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38700,"timestamp":40880640439,"id":703,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1733737091005,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10760,"timestamp":40880669542,"id":715,"parentId":545,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.jsx","layer":null},"startTime":1733737091034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11738,"timestamp":40880669371,"id":713,"parentId":545,"tags":{"name":"/app/functions/backend/grabTableSchemaData.js","layer":null},"startTime":1733737091034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15559,"timestamp":40880669860,"id":722,"parentId":546,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.jsx","layer":null},"startTime":1733737091035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16155,"timestamp":40880669902,"id":723,"parentId":548,"tags":{"name":"/app/components/admin/databases/AddTableContent.jsx","layer":null},"startTime":1733737091035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17876,"timestamp":40880669489,"id":714,"parentId":541,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.jsx","layer":null},"startTime":1733737091034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33929,"timestamp":40880669592,"id":716,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/utils.js","layer":null},"startTime":1733737091034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":34724,"timestamp":40880669773,"id":720,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/lib/pretty-bytes.js","layer":null},"startTime":1733737091035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":35495,"timestamp":40880669733,"id":719,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1733737091035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":42460,"timestamp":40880669799,"id":721,"parentId":549,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1733737091035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":42890,"timestamp":40880669633,"id":717,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1733737091034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45377,"timestamp":40880669685,"id":718,"parentId":540,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1733737091035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":48,"timestamp":40880722207,"id":732,"parentId":584,"tags":{"name":"next/head","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5334,"timestamp":40880721724,"id":724,"parentId":548,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.jsx","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5487,"timestamp":40880721997,"id":727,"parentId":555,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.jsx","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6186,"timestamp":40880721890,"id":725,"parentId":547,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.jsx","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6779,"timestamp":40880721950,"id":726,"parentId":554,"tags":{"name":"/app/components/admin/databases/TablesContent.jsx","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7309,"timestamp":40880722092,"id":729,"parentId":565,"tags":{"name":"/app/functions/backend/grabPaths.js","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7926,"timestamp":40880722163,"id":731,"parentId":581,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.js","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11081,"timestamp":40880722129,"id":730,"parentId":581,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.js","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12540,"timestamp":40880722051,"id":728,"parentId":552,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.jsx","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":25774,"timestamp":40880722294,"id":733,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/tracer.js","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":26028,"timestamp":40880722340,"id":734,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/utils.js","layer":null},"startTime":1733737091087,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5480,"timestamp":40880752766,"id":735,"parentId":594,"tags":{"name":"/app/functions/backend/suAdminUserAuth.js","layer":null},"startTime":1733737091118,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":4972,"timestamp":40880760038,"id":738,"parentId":557,"tags":{"name":"/app/components/general/VerificationBanner.jsx","layer":null},"startTime":1733737091125,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5818,"timestamp":40880759839,"id":736,"parentId":551,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.jsx","layer":null},"startTime":1733737091125,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7214,"timestamp":40880759977,"id":737,"parentId":557,"tags":{"name":"/app/components/general/Breadcrumbs.jsx","layer":null},"startTime":1733737091125,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7952,"timestamp":40880760097,"id":739,"parentId":557,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.jsx","layer":null},"startTime":1733737091125,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6730,"timestamp":40880762123,"id":742,"parentId":533,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.jsx","layer":null},"startTime":1733737091127,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7533,"timestamp":40880761998,"id":740,"parentId":543,"tags":{"name":"/app/components/admin/databases/EditTableContent.jsx","layer":null},"startTime":1733737091127,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8053,"timestamp":40880762070,"id":741,"parentId":553,"tags":{"name":"/app/components/admin/settings/SettingsContent.jsx","layer":null},"startTime":1733737091127,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7570,"timestamp":40880785150,"id":746,"parentId":542,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.jsx","layer":null},"startTime":1733737091150,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8113,"timestamp":40880784953,"id":743,"parentId":533,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.jsx","layer":null},"startTime":1733737091150,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8244,"timestamp":40880785115,"id":745,"parentId":542,"tags":{"name":"/app/components/admin/connect/ConnectContent.jsx","layer":null},"startTime":1733737091150,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8564,"timestamp":40880785181,"id":747,"parentId":542,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.jsx","layer":null},"startTime":1733737091150,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9631,"timestamp":40880785065,"id":744,"parentId":533,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.jsx","layer":null},"startTime":1733737091150,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8380,"timestamp":40880795326,"id":751,"parentId":587,"tags":{"name":"/app/functions/frontend/clearCaches.js","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9060,"timestamp":40880795291,"id":750,"parentId":556,"tags":{"name":"/app/components/admin/databases/DatabasesContent.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9818,"timestamp":40880795142,"id":748,"parentId":536,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10804,"timestamp":40880795245,"id":749,"parentId":550,"tags":{"name":"/app/components/admin/databases/SingleTableContent.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11439,"timestamp":40880795483,"id":756,"parentId":558,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12211,"timestamp":40880795359,"id":752,"parentId":573,"tags":{"name":"/app/functions/backend/fsWriteImageToDiskFromBase64.js","layer":"api"},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12772,"timestamp":40880795596,"id":759,"parentId":560,"tags":{"name":"/app/components/admin/users/DbUsersContent.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14470,"timestamp":40880795518,"id":757,"parentId":571,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15911,"timestamp":40880795568,"id":758,"parentId":559,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.jsx","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45561,"timestamp":40880795461,"id":755,"parentId":532,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45849,"timestamp":40880795390,"id":753,"parentId":549,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45976,"timestamp":40880795437,"id":754,"parentId":549,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","layer":null},"startTime":1733737091160,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12384,"timestamp":40880830169,"id":763,"parentId":587,"tags":{"name":"/app/components/general/LoadingBlock.jsx","layer":null},"startTime":1733737091195,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13084,"timestamp":40880829978,"id":760,"parentId":550,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.jsx","layer":null},"startTime":1733737091195,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":31,"timestamp":40880844622,"id":778,"parentId":633,"tags":{"name":"buffer","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7878,"timestamp":40880844052,"id":764,"parentId":564,"tags":{"name":"/app/components/general/UploadImageComponent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8367,"timestamp":40880844158,"id":765,"parentId":564,"tags":{"name":"/app/components/general/UploadFileComponent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8943,"timestamp":40880844212,"id":766,"parentId":568,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9400,"timestamp":40880844321,"id":769,"parentId":564,"tags":{"name":"/app/components/admin/media/MediaContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10116,"timestamp":40880844359,"id":770,"parentId":564,"tags":{"name":"/app/components/admin/media/NewMediaPopup.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10652,"timestamp":40880844391,"id":771,"parentId":564,"tags":{"name":"/app/components/admin/media/NewFolderPopup.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12146,"timestamp":40880844289,"id":768,"parentId":569,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1843631,"timestamp":40879012853,"id":44,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1843618,"timestamp":40879012885,"id":53,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844191,"timestamp":40879012682,"id":34,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844186,"timestamp":40879012696,"id":36,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844053,"timestamp":40879012833,"id":42,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844113,"timestamp":40879012778,"id":41,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844050,"timestamp":40879012848,"id":43,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844140,"timestamp":40879012761,"id":40,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1844045,"timestamp":40879012861,"id":46,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18119,"timestamp":40880844252,"id":767,"parentId":566,"tags":{"name":"/app/components/admin/users/AddNewUserContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18458,"timestamp":40880844488,"id":774,"parentId":565,"tags":{"name":"/app/components/admin/media/MediaFolderContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19173,"timestamp":40880844451,"id":773,"parentId":571,"tags":{"name":"/app/components/admin/users/UsersContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19445,"timestamp":40880844551,"id":776,"parentId":584,"tags":{"name":"/app/components/general/Logo.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19919,"timestamp":40880844519,"id":775,"parentId":572,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20820,"timestamp":40880844582,"id":777,"parentId":564,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22395,"timestamp":40880844421,"id":772,"parentId":564,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.jsx","layer":null},"startTime":1733737091209,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":22902,"timestamp":40880844675,"id":779,"parentId":579,"tags":{"name":"/app/package-shared/functions/api/query/post.js","layer":"api"},"startTime":1733737091210,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-cjs","duration":47426,"timestamp":40880830135,"id":762,"parentId":549,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","layer":null},"startTime":1733737091195,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":47599,"timestamp":40880830087,"id":761,"parentId":594,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1733737091195,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5493,"timestamp":40880889781,"id":780,"parentId":583,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.jsx","layer":null},"startTime":1733737091255,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5836,"timestamp":40880889883,"id":781,"parentId":583,"tags":{"name":"/app/components/pages/homepage/Hero2.jsx","layer":null},"startTime":1733737091255,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6560,"timestamp":40880889925,"id":782,"parentId":561,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.jsx","layer":null},"startTime":1733737091255,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8818,"timestamp":40880889964,"id":783,"parentId":562,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.jsx","layer":null},"startTime":1733737091255,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6581,"timestamp":40880899275,"id":784,"parentId":582,"tags":{"name":"/app/components/pages/contact/ContactHero.jsx","layer":null},"startTime":1733737091264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7181,"timestamp":40880899385,"id":785,"parentId":582,"tags":{"name":"/app/components/pages/contact/ContactForm.jsx","layer":null},"startTime":1733737091264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":35,"timestamp":40880908764,"id":795,"parentId":675,"tags":{"name":"https","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7458,"timestamp":40880908491,"id":788,"parentId":591,"tags":{"name":"/app/components/general/FormSuccessBlock.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":8218,"timestamp":40880908321,"id":786,"parentId":581,"tags":{"name":"/app/components/pages/create-account/Hero.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8417,"timestamp":40880908532,"id":789,"parentId":594,"tags":{"name":"/app/layouts/SuAdminLayout.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8592,"timestamp":40880908572,"id":790,"parentId":591,"tags":{"name":"/app/components/general/InfoBlock.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9174,"timestamp":40880908445,"id":787,"parentId":590,"tags":{"name":"/app/package-shared/functions/backend/dbHandler.js","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9267,"timestamp":40880908606,"id":791,"parentId":585,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9372,"timestamp":40880908709,"id":794,"parentId":588,"tags":{"name":"/app/components/pages/blog/BlogHero.jsx","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9988,"timestamp":40880908638,"id":792,"parentId":585,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10474,"timestamp":40880908670,"id":793,"parentId":584,"tags":{"name":"/app/components/pages/login/LoginForm.jsx","layer":null},"startTime":1733737091273,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10871,"timestamp":40880908824,"id":796,"parentId":670,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11083,"timestamp":40880908876,"id":797,"parentId":589,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.jsx","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11259,"timestamp":40880908958,"id":799,"parentId":589,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.jsx","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11903,"timestamp":40880908915,"id":798,"parentId":589,"tags":{"name":"/app/components/pages/docs/DocsAside.jsx","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12372,"timestamp":40880908991,"id":800,"parentId":564,"tags":{"name":"/app/components/general/UploadVideoComponent.jsx","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12640,"timestamp":40880909022,"id":801,"parentId":590,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.jsx","layer":null},"startTime":1733737091274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":41,"timestamp":40880930961,"id":807,"parentId":632,"tags":{"name":"serverless-mysql","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":16,"timestamp":40880931030,"id":808,"parentId":627,"tags":{"name":"sanitize-html","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":19,"timestamp":40880931307,"id":815,"parentId":631,"tags":{"name":"nodemailer","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10,"timestamp":40880931339,"id":816,"parentId":653,"tags":{"name":"dotenv","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5950,"timestamp":40880930866,"id":805,"parentId":615,"tags":{"name":"/app/functions/frontend/updateNavLinks.js","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6667,"timestamp":40880930761,"id":803,"parentId":596,"tags":{"name":"/app/components/su/SuErrorLogsContent.jsx","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7417,"timestamp":40880930627,"id":802,"parentId":596,"tags":{"name":"/app/components/su/SuBackupsContent.jsx","layer":null},"startTime":1733737091295,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7934,"timestamp":40880930818,"id":804,"parentId":597,"tags":{"name":"/app/components/su/SuDashboardContent.jsx","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8138,"timestamp":40880930916,"id":806,"parentId":653,"tags":{"name":"/app/package-shared/utils/ejson.js","layer":"api"},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8237,"timestamp":40880931060,"id":809,"parentId":581,"tags":{"name":"/app/components/general/LoadingScreen.jsx","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8290,"timestamp":40880931213,"id":812,"parentId":602,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.jsx","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8816,"timestamp":40880931117,"id":810,"parentId":600,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.jsx","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9006,"timestamp":40880931247,"id":813,"parentId":626,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","layer":"api"},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9119,"timestamp":40880931358,"id":817,"parentId":632,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.js","layer":"api"},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1927798,"timestamp":40879012895,"id":56,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1928016,"timestamp":40879012689,"id":35,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1927665,"timestamp":40879013048,"id":101,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1927632,"timestamp":40879013088,"id":112,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1927867,"timestamp":40879013141,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15327,"timestamp":40880931399,"id":818,"parentId":671,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.js","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15781,"timestamp":40880931277,"id":814,"parentId":670,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17029,"timestamp":40880931162,"id":811,"parentId":598,"tags":{"name":"/app/components/su/docs/CreatePageContent.jsx","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":33,"timestamp":40880951230,"id":829,"parentId":676,"tags":{"name":"sharp","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10,"timestamp":40880951281,"id":830,"parentId":676,"tags":{"name":"node-fetch","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":22,"timestamp":40880951535,"id":835,"parentId":718,"tags":{"name":"react-dom","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938983,"timestamp":40879012675,"id":33,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938953,"timestamp":40879012716,"id":39,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938648,"timestamp":40879013029,"id":95,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938623,"timestamp":40879013064,"id":105,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938625,"timestamp":40879013067,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938637,"timestamp":40879013060,"id":104,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1939187,"timestamp":40879012522,"id":29,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1939219,"timestamp":40879012495,"id":28,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938856,"timestamp":40879012864,"id":47,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938855,"timestamp":40879012871,"id":49,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938856,"timestamp":40879012874,"id":50,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938830,"timestamp":40879012905,"id":59,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938833,"timestamp":40879012908,"id":60,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938830,"timestamp":40879012920,"id":63,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938822,"timestamp":40879012933,"id":67,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938832,"timestamp":40879012930,"id":66,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938823,"timestamp":40879012943,"id":70,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938826,"timestamp":40879012946,"id":71,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938837,"timestamp":40879012940,"id":69,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938832,"timestamp":40879012950,"id":72,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938832,"timestamp":40879012955,"id":73,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938830,"timestamp":40879012961,"id":74,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938822,"timestamp":40879012974,"id":78,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938836,"timestamp":40879012964,"id":75,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938834,"timestamp":40879012971,"id":77,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938842,"timestamp":40879012968,"id":76,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938815,"timestamp":40879013001,"id":86,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938803,"timestamp":40879013020,"id":92,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938795,"timestamp":40879013032,"id":96,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938794,"timestamp":40879013038,"id":98,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938796,"timestamp":40879013041,"id":99,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938836,"timestamp":40879013007,"id":88,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938764,"timestamp":40879013084,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938856,"timestamp":40879012998,"id":85,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938866,"timestamp":40879012995,"id":84,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938979,"timestamp":40879012889,"id":54,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938799,"timestamp":40879013074,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938597,"timestamp":40879013283,"id":172,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938538,"timestamp":40879013385,"id":203,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1938521,"timestamp":40879013408,"id":210,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1941330,"timestamp":40879012443,"id":25,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940795,"timestamp":40879012991,"id":83,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940898,"timestamp":40879012899,"id":57,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940902,"timestamp":40879012913,"id":61,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940897,"timestamp":40879012923,"id":64,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940524,"timestamp":40879013303,"id":178,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940686,"timestamp":40879013154,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940689,"timestamp":40879013157,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1940703,"timestamp":40879013151,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7293,"timestamp":40880950910,"id":821,"parentId":612,"tags":{"name":"/app/functions/isLocalSuperUser.js","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7583,"timestamp":40880951049,"id":824,"parentId":651,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.js","layer":"api"},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8003,"timestamp":40880951011,"id":823,"parentId":595,"tags":{"name":"/app/components/su/SuEnvContent.jsx","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8741,"timestamp":40880950968,"id":822,"parentId":594,"tags":{"name":"/app/components/su/SuConsoleContent.jsx","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8982,"timestamp":40880951083,"id":825,"parentId":670,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.js","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9100,"timestamp":40880951124,"id":826,"parentId":636,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.js","layer":"api"},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8956,"timestamp":40880951469,"id":833,"parentId":615,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.jsx","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9209,"timestamp":40880951425,"id":832,"parentId":613,"tags":{"name":"/app/package-shared/utils/ejson.js","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9834,"timestamp":40880951158,"id":827,"parentId":615,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.jsx","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9674,"timestamp":40880951505,"id":834,"parentId":649,"tags":{"name":"/app/package-shared/shell/utils/slugToCamelTitle.js","layer":"api"},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9766,"timestamp":40880951611,"id":837,"parentId":653,"tags":{"name":"/app/package-shared/shell/utils/noDatabaseDbHandler.js","layer":"api"},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10345,"timestamp":40880951570,"id":836,"parentId":621,"tags":{"name":"/app/components/su/SuSingleUserContent.jsx","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11551,"timestamp":40880951191,"id":828,"parentId":615,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.jsx","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"}] -[{"name":"add-entry","duration":1950346,"timestamp":40879013392,"id":205,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1951046,"timestamp":40879012709,"id":38,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950659,"timestamp":40879013107,"id":118,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950662,"timestamp":40879013110,"id":119,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950664,"timestamp":40879013113,"id":120,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950660,"timestamp":40879013122,"id":123,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950908,"timestamp":40879012882,"id":52,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950917,"timestamp":40879012878,"id":51,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1951385,"timestamp":40879012417,"id":23,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1951351,"timestamp":40879012457,"id":26,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1951382,"timestamp":40879012432,"id":24,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1951345,"timestamp":40879012473,"id":27,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1951160,"timestamp":40879012665,"id":32,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950743,"timestamp":40879013091,"id":113,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950743,"timestamp":40879013097,"id":115,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950557,"timestamp":40879013290,"id":174,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950559,"timestamp":40879013293,"id":175,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950577,"timestamp":40879013280,"id":171,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1950884,"timestamp":40879012980,"id":80,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":48951,"timestamp":40880931438,"id":819,"parentId":701,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1733737091296,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7488,"timestamp":40880973492,"id":838,"parentId":653,"tags":{"name":"/app/package-shared/shell/utils/varDatabaseDbHandler.js","layer":"api"},"startTime":1733737091338,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7770,"timestamp":40880973706,"id":841,"parentId":653,"tags":{"name":"/app/package-shared/shell/utils/dbHandler.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8826,"timestamp":40880973611,"id":839,"parentId":653,"tags":{"name":"/app/package-shared/shell/utils/createTable.js","layer":"api"},"startTime":1733737091338,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9075,"timestamp":40880973746,"id":842,"parentId":622,"tags":{"name":"/app/components/su/SuUsersContent.jsx","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9595,"timestamp":40880973780,"id":843,"parentId":663,"tags":{"name":"/app/package-shared/functions/api/social-login/loginSocialUser.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9761,"timestamp":40880973870,"id":845,"parentId":609,"tags":{"name":"/app/functions/backend/su/get-servers.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14036,"timestamp":40880974108,"id":850,"parentId":689,"tags":{"name":"/app/functions/frontend/downloadApiStream.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16094,"timestamp":40880973660,"id":840,"parentId":653,"tags":{"name":"/app/package-shared/shell/utils/updateTable.js","layer":"api"},"startTime":1733737091338,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16471,"timestamp":40880974036,"id":849,"parentId":682,"tags":{"name":"/app/functions/backend/cleanUpSchemaData.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17412,"timestamp":40880973995,"id":848,"parentId":730,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17844,"timestamp":40880974144,"id":851,"parentId":685,"tags":{"name":"/app/package-shared/shell/mariadb-users/handleGrants.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18122,"timestamp":40880974182,"id":852,"parentId":665,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18446,"timestamp":40880974213,"id":853,"parentId":678,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18635,"timestamp":40880974308,"id":856,"parentId":616,"tags":{"name":"/app/components/pages/terms/TermsHero.jsx","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19438,"timestamp":40880974244,"id":854,"parentId":684,"tags":{"name":"/app/package-shared/functions/backend/db/runQuery.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19891,"timestamp":40880974339,"id":857,"parentId":693,"tags":{"name":"/app/package-shared/functions/backend/addUsersTableToDb.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20771,"timestamp":40880974273,"id":855,"parentId":616,"tags":{"name":"/app/components/pages/terms/TermsBody.jsx","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":21239,"timestamp":40880974365,"id":858,"parentId":693,"tags":{"name":"/app/package-shared/functions/backend/updateUsersTableSchema.js","layer":"api"},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21706,"timestamp":40880974397,"id":859,"parentId":623,"tags":{"name":"/app/components/su/SuNewUserContent.jsx","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23112,"timestamp":40880974477,"id":861,"parentId":689,"tags":{"name":"/app/components/general/CopySlug.jsx","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23753,"timestamp":40880974424,"id":860,"parentId":688,"tags":{"name":"/app/components/general/DiskUsageComponent.jsx","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14863,"timestamp":40880984100,"id":862,"parentId":700,"tags":{"name":"/app/package-shared/utils/camelJoinedtoCamelSpace.js","layer":"api"},"startTime":1733737091349,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1990497,"timestamp":40879012917,"id":62,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1990414,"timestamp":40879013026,"id":94,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1990405,"timestamp":40879013045,"id":100,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1990405,"timestamp":40879013052,"id":102,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1990405,"timestamp":40879013057,"id":103,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":61408,"timestamp":40880951366,"id":831,"parentId":703,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":62793,"timestamp":40880950776,"id":820,"parentId":701,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","layer":null},"startTime":1733737091316,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2001526,"timestamp":40879013138,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2008708,"timestamp":40879013070,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2008727,"timestamp":40879013077,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":1353,"timestamp":40881026502,"id":872,"parentId":722,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":56072,"timestamp":40880984264,"id":864,"parentId":733,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/constants.js","layer":null},"startTime":1733737091349,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":67523,"timestamp":40880973814,"id":844,"parentId":719,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":68400,"timestamp":40880973909,"id":846,"parentId":718,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":69377,"timestamp":40880973948,"id":847,"parentId":718,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1733737091339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19924,"timestamp":40881025443,"id":865,"parentId":698,"tags":{"name":"/app/package-shared/functions/backend/auth/write-auth-files.js","layer":"api"},"startTime":1733737091390,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20866,"timestamp":40881025654,"id":867,"parentId":688,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.jsx","layer":null},"startTime":1733737091390,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22344,"timestamp":40881025586,"id":866,"parentId":688,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.jsx","layer":null},"startTime":1733737091390,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21835,"timestamp":40881026676,"id":876,"parentId":709,"tags":{"name":"/app/components/general/DatabaseSlugCopy.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22539,"timestamp":40881026630,"id":875,"parentId":708,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.jsx","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22839,"timestamp":40881026768,"id":878,"parentId":708,"tags":{"name":"/app/components/general/BackButton.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24298,"timestamp":40881026575,"id":874,"parentId":706,"tags":{"name":"/app/components/general/GeneralPopup.jsx","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24912,"timestamp":40881026728,"id":877,"parentId":709,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26831,"timestamp":40881026527,"id":873,"parentId":706,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.jsx","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26988,"timestamp":40881026818,"id":879,"parentId":708,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27336,"timestamp":40881026900,"id":881,"parentId":711,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27800,"timestamp":40881026859,"id":880,"parentId":708,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2042136,"timestamp":40879013164,"id":136,"parentId":18,"tags":{"request":"private-next-pages/_app.js"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2043479,"timestamp":40879011836,"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.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2041990,"timestamp":40879013344,"id":190,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2042199,"timestamp":40879013148,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33296,"timestamp":40881026948,"id":882,"parentId":715,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33820,"timestamp":40881027031,"id":884,"parentId":690,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34298,"timestamp":40881027075,"id":885,"parentId":690,"tags":{"name":"/app/components/general/ContainedSection.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34705,"timestamp":40881027211,"id":888,"parentId":722,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35842,"timestamp":40881027169,"id":887,"parentId":722,"tags":{"name":"/app/components/admin/databases/TableEntriesList.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":38752,"timestamp":40881026990,"id":883,"parentId":715,"tags":{"name":"/app/components/admin/databases/TableFields.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39269,"timestamp":40881027249,"id":889,"parentId":709,"tags":{"name":"/app/components/general/ui/ButtonGroup.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":82619,"timestamp":40880984204,"id":863,"parentId":733,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-thenable.js","layer":null},"startTime":1733737091349,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":41380,"timestamp":40881027127,"id":886,"parentId":722,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.jsx","layer":null},"startTime":1733737091392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11538,"timestamp":40881079137,"id":897,"parentId":714,"tags":{"name":"/app/components/general/AceEditor.jsx","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12696,"timestamp":40881078760,"id":891,"parentId":723,"tags":{"name":"/app/components/admin/databases/AddTableForm.jsx","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13609,"timestamp":40881079097,"id":896,"parentId":722,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.jsx","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":82342,"timestamp":40881026410,"id":870,"parentId":692,"tags":{"name":"__barrel_optimize__?names=Blocks!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":91764,"timestamp":40881025713,"id":868,"parentId":689,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":96837,"timestamp":40881026464,"id":871,"parentId":709,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":101242,"timestamp":40881026348,"id":869,"parentId":691,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2818,"timestamp":40881128714,"id":916,"parentId":790,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091494,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4373,"timestamp":40881128751,"id":917,"parentId":802,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091494,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":59586,"timestamp":40881078673,"id":890,"parentId":760,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091443,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":64838,"timestamp":40881078822,"id":892,"parentId":774,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":68322,"timestamp":40881078893,"id":894,"parentId":776,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":71206,"timestamp":40881079071,"id":895,"parentId":777,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":57633,"timestamp":40881093367,"id":898,"parentId":714,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaVisualizer.jsx","layer":null},"startTime":1733737091458,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":57899,"timestamp":40881093500,"id":899,"parentId":714,"tags":{"name":"/app/components/general/CodeBlock.jsx","layer":null},"startTime":1733737091458,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":58397,"timestamp":40881093555,"id":900,"parentId":714,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.jsx","layer":null},"startTime":1733737091458,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":58707,"timestamp":40881093703,"id":903,"parentId":714,"tags":{"name":"/app/components/form/FormCheckboxes.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":59622,"timestamp":40881093658,"id":902,"parentId":725,"tags":{"name":"/app/components/admin/databases/TableEntryForm.jsx","layer":null},"startTime":1733737091458,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":59788,"timestamp":40881093826,"id":906,"parentId":609,"tags":{"name":"/app/components/su/load-balancing/index.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":60792,"timestamp":40881093743,"id":904,"parentId":714,"tags":{"name":"/app/components/form/FormSelect.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":60982,"timestamp":40881093908,"id":908,"parentId":613,"tags":{"name":"/app/components/su/servers/index.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":61324,"timestamp":40881093947,"id":909,"parentId":728,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":62119,"timestamp":40881093868,"id":907,"parentId":726,"tags":{"name":"/app/components/admin/databases/TablesList.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":63387,"timestamp":40881093991,"id":910,"parentId":728,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.jsx","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":67402,"timestamp":40881093606,"id":901,"parentId":772,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091458,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":70513,"timestamp":40881093786,"id":905,"parentId":780,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091459,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39968,"timestamp":40881128609,"id":914,"parentId":736,"tags":{"name":"/app/components/admin/dashboard/Metrics.jsx","layer":null},"startTime":1733737091493,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":40489,"timestamp":40881128400,"id":911,"parentId":736,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.jsx","layer":null},"startTime":1733737091493,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":40860,"timestamp":40881128572,"id":913,"parentId":736,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.jsx","layer":null},"startTime":1733737091493,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":41960,"timestamp":40881128521,"id":912,"parentId":739,"tags":{"name":"/app/components/admin/databases/UserSchemaVisualizer.jsx","layer":null},"startTime":1733737091493,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":42320,"timestamp":40881128653,"id":915,"parentId":744,"tags":{"name":"/app/functions/frontend/checkUniqueField.js","layer":null},"startTime":1733737091493,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":42603,"timestamp":40881128788,"id":918,"parentId":742,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.jsx","layer":null},"startTime":1733737091494,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":114081,"timestamp":40881078861,"id":893,"parentId":733,"tags":{"name":"/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js","layer":null},"startTime":1733737091444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":1321,"timestamp":40881224028,"id":926,"parentId":756,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3493,"timestamp":40881224112,"id":927,"parentId":828,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3934,"timestamp":40881224290,"id":931,"parentId":860,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10490,"timestamp":40881223605,"id":919,"parentId":741,"tags":{"name":"/app/components/admin/databases/UserImage.jsx","layer":null},"startTime":1733737091588,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11226,"timestamp":40881223875,"id":922,"parentId":746,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.jsx","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12829,"timestamp":40881223779,"id":920,"parentId":741,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.jsx","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14021,"timestamp":40881223831,"id":921,"parentId":740,"tags":{"name":"/app/components/admin/databases/EditTableForm.jsx","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14548,"timestamp":40881223914,"id":923,"parentId":764,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14895,"timestamp":40881223956,"id":924,"parentId":765,"tags":{"name":"/app/functions/frontend/inputFileToBase64.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15077,"timestamp":40881223994,"id":925,"parentId":757,"tags":{"name":"/app/functions/frontend/updateDiskUsage.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15090,"timestamp":40881224217,"id":929,"parentId":848,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15443,"timestamp":40881224324,"id":932,"parentId":745,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.jsx","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16122,"timestamp":40881224175,"id":928,"parentId":848,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17204,"timestamp":40881224408,"id":934,"parentId":745,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.jsx","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30048,"timestamp":40881224253,"id":930,"parentId":848,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.js","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31568,"timestamp":40881224371,"id":933,"parentId":756,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.jsx","layer":null},"startTime":1733737091589,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3584,"timestamp":40881257086,"id":942,"parentId":878,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4118,"timestamp":40881257121,"id":943,"parentId":874,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4733,"timestamp":40881257153,"id":944,"parentId":866,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,Plug2,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13689,"timestamp":40881256896,"id":937,"parentId":750,"tags":{"name":"/app/components/admin/databases/DatabasesList.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14560,"timestamp":40881256847,"id":936,"parentId":759,"tags":{"name":"/app/components/admin/users/DbUsersList.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14820,"timestamp":40881256969,"id":939,"parentId":772,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16336,"timestamp":40881256729,"id":935,"parentId":749,"tags":{"name":"/app/components/admin/databases/TableIndexes.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17907,"timestamp":40881256934,"id":938,"parentId":748,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18701,"timestamp":40881257007,"id":940,"parentId":772,"tags":{"name":"/app/functions/frontend/downloadFile.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19129,"timestamp":40881257250,"id":947,"parentId":766,"tags":{"name":"/app/components/admin/users/DatabaseUsers.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20076,"timestamp":40881257215,"id":946,"parentId":770,"tags":{"name":"/app/components/admin/media/NewMediaCard.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20663,"timestamp":40881257287,"id":948,"parentId":758,"tags":{"name":"/app/components/form/FormRadios.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21218,"timestamp":40881257316,"id":949,"parentId":769,"tags":{"name":"/app/components/admin/media/MediaList.jsx","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4828,"timestamp":40881291587,"id":956,"parentId":887,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11086,"timestamp":40881291479,"id":953,"parentId":770,"tags":{"name":"/app/components/admin/media/NewFileCard.jsx","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12116,"timestamp":40881291289,"id":950,"parentId":768,"tags":{"name":"/app/components/admin/users/UserListCard.jsx","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12401,"timestamp":40881291443,"id":952,"parentId":768,"tags":{"name":"/app/components/admin/users/UserImage.jsx","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12858,"timestamp":40881291400,"id":951,"parentId":773,"tags":{"name":"/app/components/admin/users/UsersList.jsx","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13056,"timestamp":40881291519,"id":954,"parentId":773,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.jsx","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11498,"timestamp":40881293333,"id":959,"parentId":781,"tags":{"name":"/app/components/general/FadedImage.jsx","layer":null},"startTime":1733737091658,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13761,"timestamp":40881291553,"id":955,"parentId":793,"tags":{"name":"/app/functions/frontend/userLogin.js","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12441,"timestamp":40881293390,"id":960,"parentId":822,"tags":{"name":"/app/components/su/xterm.js","layer":null},"startTime":1733737091658,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13534,"timestamp":40881293503,"id":963,"parentId":825,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.js","layer":null},"startTime":1733737091658,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13764,"timestamp":40881293465,"id":962,"parentId":824,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.js","layer":"api"},"startTime":1733737091658,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14038,"timestamp":40881293429,"id":961,"parentId":854,"tags":{"name":"/app/package-shared/utils/trim-sql.js","layer":"api"},"startTime":1733737091658,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2297054,"timestamp":40879012867,"id":48,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2297042,"timestamp":40879012902,"id":58,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2297026,"timestamp":40879012927,"id":65,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2297023,"timestamp":40879012937,"id":68,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2296980,"timestamp":40879012986,"id":82,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2296957,"timestamp":40879013016,"id":91,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2296957,"timestamp":40879013023,"id":93,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2296951,"timestamp":40879013035,"id":97,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2297291,"timestamp":40879012703,"id":37,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2297142,"timestamp":40879012857,"id":45,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2296890,"timestamp":40879013116,"id":121,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2296878,"timestamp":40879013135,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2298228,"timestamp":40879013398,"id":207,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6161,"timestamp":40881309835,"id":966,"parentId":845,"tags":{"name":"/app/functions/backend/su/check-servers.js","layer":null},"startTime":1733737091675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6850,"timestamp":40881309688,"id":965,"parentId":839,"tags":{"name":"/app/package-shared/shell/utils/generateColumnDescription.js","layer":"api"},"startTime":1733737091675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":103,"timestamp":40881317126,"id":972,"parentId":822,"tags":{"name":"ansi-regex","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14,"timestamp":40881318622,"id":1006,"parentId":861,"tags":{"name":"tailwind-merge","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":10,"timestamp":40881318743,"id":1009,"parentId":883,"tags":{"name":"gsap/Flip","layer":null},"startTime":1733737091684,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-io-client","duration":8,"timestamp":40881318764,"id":1010,"parentId":822,"tags":{"name":"socket.io-client","layer":null},"startTime":1733737091684,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":5,"timestamp":40881318779,"id":1011,"parentId":883,"tags":{"name":"gsap","layer":null},"startTime":1733737091684,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4360,"timestamp":40881317064,"id":970,"parentId":909,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5034,"timestamp":40881317099,"id":971,"parentId":904,"tags":{"name":"__barrel_optimize__?names=ChevronDown,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5645,"timestamp":40881317248,"id":973,"parentId":907,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6172,"timestamp":40881317300,"id":974,"parentId":914,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5302,"timestamp":40881318705,"id":1008,"parentId":934,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091684,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":69387,"timestamp":40881257038,"id":941,"parentId":819,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":69561,"timestamp":40881257177,"id":945,"parentId":820,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1733737091622,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10386,"timestamp":40881316969,"id":968,"parentId":845,"tags":{"name":"/app/functions/backend/su/get-servers-json-path.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10938,"timestamp":40881316858,"id":967,"parentId":839,"tags":{"name":"/app/package-shared/shell/utils/supplementTable.js","layer":"api"},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9815,"timestamp":40881318321,"id":997,"parentId":785,"tags":{"name":"/app/components/general/FormAlertBlock.jsx","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13263,"timestamp":40881317016,"id":969,"parentId":772,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.jsx","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12259,"timestamp":40881318430,"id":1000,"parentId":857,"tags":{"name":"/app/package-shared/functions/backend/grabNewUsersTableSchema.js","layer":"api"},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12864,"timestamp":40881318361,"id":998,"parentId":793,"tags":{"name":"/app/components/pages/login/SocialLogin.jsx","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13493,"timestamp":40881318392,"id":999,"parentId":823,"tags":{"name":"/app/components/su/SuEnvCard.jsx","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13734,"timestamp":40881318492,"id":1002,"parentId":854,"tags":{"name":"/app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","layer":"api"},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14362,"timestamp":40881318462,"id":1001,"parentId":858,"tags":{"name":"/app/package-shared/functions/backend/grabSchemaFieldsFromData.js","layer":"api"},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15212,"timestamp":40881318521,"id":1003,"parentId":854,"tags":{"name":"/app/package-shared/functions/backend/fullAccessDbHandler.js","layer":"api"},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16392,"timestamp":40881318557,"id":1004,"parentId":789,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.jsx","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17253,"timestamp":40881318589,"id":1005,"parentId":789,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.jsx","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2329403,"timestamp":40879012538,"id":30,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2329333,"timestamp":40879012637,"id":31,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2329088,"timestamp":40879012892,"id":55,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2329007,"timestamp":40879012983,"id":81,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2328898,"timestamp":40879013100,"id":116,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2328903,"timestamp":40879013103,"id":117,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2328893,"timestamp":40879013119,"id":122,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"}] -[{"name":"add-entry","duration":2329370,"timestamp":40879013013,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2329286,"timestamp":40879013125,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":55574,"timestamp":40881291618,"id":957,"parentId":820,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2337081,"timestamp":40879013010,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2336814,"timestamp":40879013299,"id":177,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2808,"timestamp":40881355286,"id":1015,"parentId":937,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3262,"timestamp":40881355345,"id":1016,"parentId":949,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-process","duration":31735,"timestamp":40881516034,"id":1034,"parentId":964,"tags":{},"startTime":1733737091881,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-loader","duration":253545,"timestamp":40881294268,"id":964,"parentId":958,"tags":{},"startTime":1733737091659,"traceId":"abc7307b6d44cd6e"},{"name":"css-loader","duration":26565,"timestamp":40881547974,"id":1035,"parentId":958,"tags":{"astUsed":"true"},"startTime":1733737091913,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":283289,"timestamp":40881291670,"id":958,"parentId":781,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1733737091656,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":258078,"timestamp":40881317531,"id":979,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":258488,"timestamp":40881317387,"id":976,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":258816,"timestamp":40881317333,"id":975,"parentId":870,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/blocks.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":258943,"timestamp":40881317441,"id":977,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":259004,"timestamp":40881317621,"id":981,"parentId":869,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":259450,"timestamp":40881317487,"id":978,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":259403,"timestamp":40881317796,"id":985,"parentId":892,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":259876,"timestamp":40881317579,"id":980,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":259962,"timestamp":40881317754,"id":984,"parentId":890,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":260147,"timestamp":40881317837,"id":986,"parentId":894,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":260277,"timestamp":40881317932,"id":988,"parentId":895,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":260565,"timestamp":40881317890,"id":987,"parentId":895,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":260731,"timestamp":40881317973,"id":989,"parentId":895,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":260886,"timestamp":40881318017,"id":990,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":261025,"timestamp":40881318066,"id":991,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":261253,"timestamp":40881318106,"id":992,"parentId":905,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":261480,"timestamp":40881318146,"id":993,"parentId":905,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":261676,"timestamp":40881318192,"id":994,"parentId":905,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":261958,"timestamp":40881318233,"id":995,"parentId":905,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":262176,"timestamp":40881318273,"id":996,"parentId":905,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":261988,"timestamp":40881318839,"id":1013,"parentId":931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1733737091684,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":262267,"timestamp":40881318791,"id":1012,"parentId":931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1733737091684,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":263230,"timestamp":40881318652,"id":1007,"parentId":819,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":264514,"timestamp":40881317662,"id":982,"parentId":916,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1733737091682,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":264785,"timestamp":40881317711,"id":983,"parentId":917,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1733737091683,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":227414,"timestamp":40881355578,"id":1020,"parentId":883,"tags":{"name":"/app/functions/frontend/addNewTempField.js","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":227676,"timestamp":40881355619,"id":1021,"parentId":886,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.js","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":228916,"timestamp":40881355476,"id":1018,"parentId":828,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.jsx","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":229456,"timestamp":40881355528,"id":1019,"parentId":828,"tags":{"name":"/app/components/general/ThemeSelector.jsx","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":229230,"timestamp":40881356047,"id":1029,"parentId":799,"tags":{"name":"/app/components/cards/LinkCard.jsx","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":229878,"timestamp":40881356088,"id":1030,"parentId":804,"tags":{"name":"/app/components/su/components/UserCard.jsx","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":234032,"timestamp":40881356197,"id":1033,"parentId":836,"tags":{"name":"/app/components/su/components/UserData.jsx","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":234762,"timestamp":40881356119,"id":1031,"parentId":836,"tags":{"name":"/app/components/su/components/UserBackups.jsx","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":239141,"timestamp":40881355414,"id":1017,"parentId":811,"tags":{"name":"/app/components/form/FormInput.jsx","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":27,"timestamp":40881602601,"id":1048,"parentId":909,"tags":{"name":"react-tiny-popover","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":657,"timestamp":40881602534,"id":1046,"parentId":1001,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":"api"},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1505,"timestamp":40881602560,"id":1047,"parentId":1005,"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":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":19,"timestamp":40881607481,"id":1058,"parentId":960,"tags":{"name":"xterm","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7323,"timestamp":40881602014,"id":1037,"parentId":780,"tags":{"name":"/app/components/general/IconText.jsx","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7477,"timestamp":40881602471,"id":1044,"parentId":883,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8142,"timestamp":40881602431,"id":1043,"parentId":811,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.jsx","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9510,"timestamp":40881601911,"id":1036,"parentId":810,"tags":{"name":"/app/components/su/components/PageCard.jsx","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":255992,"timestamp":40881355665,"id":1022,"parentId":943,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":256708,"timestamp":40881355134,"id":1014,"parentId":931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1733737091720,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9765,"timestamp":40881602505,"id":1045,"parentId":897,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":256709,"timestamp":40881355768,"id":1024,"parentId":944,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":256981,"timestamp":40881355717,"id":1023,"parentId":944,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":256968,"timestamp":40881355938,"id":1027,"parentId":944,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":257234,"timestamp":40881355873,"id":1026,"parentId":944,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plug-2.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":257304,"timestamp":40881355999,"id":1028,"parentId":944,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":257715,"timestamp":40881355817,"id":1025,"parentId":944,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":257573,"timestamp":40881356150,"id":1032,"parentId":956,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1733737091721,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10086,"timestamp":40881607069,"id":1050,"parentId":873,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10827,"timestamp":40881607157,"id":1052,"parentId":883,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11974,"timestamp":40881606967,"id":1049,"parentId":879,"tags":{"name":"/app/components/admin/databases/DatabaseForm.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13084,"timestamp":40881607117,"id":1051,"parentId":887,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13804,"timestamp":40881607200,"id":1053,"parentId":883,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13928,"timestamp":40881607394,"id":1056,"parentId":883,"tags":{"name":"/app/components/general/ExpandBlock.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16965,"timestamp":40881607334,"id":1055,"parentId":879,"tags":{"name":"/app/components/admin/databases/DatabaseImage.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18265,"timestamp":40881607263,"id":1054,"parentId":883,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.jsx","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18552,"timestamp":40881607441,"id":1057,"parentId":910,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.js","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1435,"timestamp":40881634991,"id":1064,"parentId":1036,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092000,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":36619,"timestamp":40881602368,"id":1042,"parentId":974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":37020,"timestamp":40881602155,"id":1040,"parentId":973,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":37259,"timestamp":40881602109,"id":1039,"parentId":973,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":37634,"timestamp":40881602063,"id":1038,"parentId":970,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38117,"timestamp":40881602196,"id":1041,"parentId":973,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1733737091967,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":37622,"timestamp":40881607529,"id":1059,"parentId":1015,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":37905,"timestamp":40881607582,"id":1060,"parentId":1016,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38822,"timestamp":40881607629,"id":1061,"parentId":979,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1733737091972,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6254,"timestamp":40881640878,"id":1068,"parentId":873,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7158,"timestamp":40881640690,"id":1065,"parentId":891,"tags":{"name":"/app/components/admin/databases/NewTableForm.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9785,"timestamp":40881640794,"id":1066,"parentId":886,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10637,"timestamp":40881640839,"id":1067,"parentId":886,"tags":{"name":"/app/components/admin/databases/TableEntryField.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11352,"timestamp":40881640913,"id":1069,"parentId":907,"tags":{"name":"/app/components/admin/databases/TableListCard.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11967,"timestamp":40881640950,"id":1070,"parentId":907,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16852,"timestamp":40881641081,"id":1074,"parentId":935,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18270,"timestamp":40881641044,"id":1073,"parentId":920,"tags":{"name":"/app/functions/frontend/submitNewUserForm.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45238,"timestamp":40881614466,"id":1063,"parentId":1007,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1733737091979,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19837,"timestamp":40881641013,"id":1072,"parentId":909,"tags":{"name":"/app/components/admin/databases/SyncDataButton.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21242,"timestamp":40881640981,"id":1071,"parentId":891,"tags":{"name":"/app/components/admin/databases/CloneTableForm.jsx","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":49388,"timestamp":40881614332,"id":1062,"parentId":1007,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1733737091979,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":36,"timestamp":40881664385,"id":1082,"parentId":960,"tags":{"name":"xterm-addon-fit","layer":null},"startTime":1733737092029,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1270,"timestamp":40881673543,"id":1083,"parentId":1067,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1747,"timestamp":40881673628,"id":1084,"parentId":1069,"tags":{"name":"__barrel_optimize__?names=ChevronRight,DatabaseBackup,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2209,"timestamp":40881673665,"id":1085,"parentId":1070,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":1027,"timestamp":40881678294,"id":1094,"parentId":1001,"tags":{"name":"/app/package-shared/data/possibleFields.json","layer":"api"},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":40454,"timestamp":40881641211,"id":1077,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":40794,"timestamp":40881641112,"id":1075,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":40989,"timestamp":40881641160,"id":1076,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-js","duration":41489,"timestamp":40881641256,"id":1078,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":42303,"timestamp":40881641298,"id":1079,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":42400,"timestamp":40881641402,"id":1081,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":42670,"timestamp":40881641338,"id":1080,"parentId":1047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1733737092006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6764,"timestamp":40881677906,"id":1086,"parentId":902,"tags":{"name":"/app/functions/frontend/newEntryHandler.js","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7168,"timestamp":40881677998,"id":1087,"parentId":907,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7629,"timestamp":40881678087,"id":1089,"parentId":918,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8653,"timestamp":40881678042,"id":1088,"parentId":913,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2674060,"timestamp":40879013129,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15361,"timestamp":40881678224,"id":1092,"parentId":935,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16079,"timestamp":40881678190,"id":1091,"parentId":932,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17741,"timestamp":40881678125,"id":1090,"parentId":922,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17891,"timestamp":40881678451,"id":1098,"parentId":906,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20735,"timestamp":40881678261,"id":1093,"parentId":935,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.jsx","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1355,"timestamp":40881707715,"id":1100,"parentId":1087,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092073,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1937,"timestamp":40881707804,"id":1101,"parentId":1088,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092073,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2407,"timestamp":40881712452,"id":1102,"parentId":1091,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Delete,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092077,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":37645,"timestamp":40881678408,"id":1097,"parentId":1061,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38001,"timestamp":40881678315,"id":1095,"parentId":1064,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":38185,"timestamp":40881678356,"id":1096,"parentId":1064,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1733737092043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":4842,"timestamp":40881712694,"id":1106,"parentId":914,"tags":{"name":"/app/components/general/MetricCard.jsx","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5420,"timestamp":40881712536,"id":1103,"parentId":946,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.jsx","layer":null},"startTime":1733737092077,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5892,"timestamp":40881712611,"id":1104,"parentId":949,"tags":{"name":"/app/components/admin/media/MediaFolderCard.jsx","layer":null},"startTime":1733737092077,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6810,"timestamp":40881712653,"id":1105,"parentId":949,"tags":{"name":"/app/components/admin/media/card/MediaListCard.jsx","layer":null},"startTime":1733737092077,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7348,"timestamp":40881712782,"id":1108,"parentId":998,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.jsx","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7728,"timestamp":40881712854,"id":1110,"parentId":1017,"tags":{"name":"/app/functions/frontend/numberFormatFloat.js","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8803,"timestamp":40881712732,"id":1107,"parentId":998,"tags":{"name":"/app/components/pages/login/GithubLogin.jsx","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":23067,"timestamp":40881699766,"id":1099,"parentId":1063,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1733737092065,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18656,"timestamp":40881712896,"id":1111,"parentId":1017,"tags":{"name":"/app/functions/frontend/numberFormat.js","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19735,"timestamp":40881712819,"id":1109,"parentId":998,"tags":{"name":"/app/components/pages/login/FacebookSignInButton.jsx","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20296,"timestamp":40881712935,"id":1112,"parentId":1052,"tags":{"name":"/app/functions/frontend/reorderField.js","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2185,"timestamp":40881735721,"id":1115,"parentId":1103,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2693,"timestamp":40881735795,"id":1116,"parentId":1104,"tags":{"name":"__barrel_optimize__?names=Copy,Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":26680,"timestamp":40881713025,"id":1114,"parentId":1061,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27040,"timestamp":40881712970,"id":1113,"parentId":1083,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1733737092078,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727061,"timestamp":40879013325,"id":185,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727119,"timestamp":40879013347,"id":191,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727117,"timestamp":40879013370,"id":198,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727143,"timestamp":40879013351,"id":192,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727125,"timestamp":40879013376,"id":200,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727129,"timestamp":40879013379,"id":201,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727153,"timestamp":40879013363,"id":196,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727156,"timestamp":40879013366,"id":197,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727129,"timestamp":40879013402,"id":208,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2727133,"timestamp":40879013405,"id":209,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5560,"timestamp":40881735832,"id":1117,"parentId":1018,"tags":{"name":"/app/layouts/components/AdminUserDropdown.jsx","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5937,"timestamp":40881735924,"id":1119,"parentId":1033,"tags":{"name":"/app/components/su/components/UserFiles.jsx","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6874,"timestamp":40881735883,"id":1118,"parentId":1033,"tags":{"name":"/app/components/su/components/UserDbShell.jsx","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7466,"timestamp":40881735964,"id":1120,"parentId":1043,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.jsx","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7905,"timestamp":40881735996,"id":1121,"parentId":1049,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8284,"timestamp":40881736023,"id":1122,"parentId":1049,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8783,"timestamp":40881736049,"id":1123,"parentId":1053,"tags":{"name":"/app/functions/frontend/addNewField.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17904,"timestamp":40881736076,"id":1124,"parentId":1067,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2741887,"timestamp":40879013382,"id":202,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2741897,"timestamp":40879013389,"id":204,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1683,"timestamp":40881756929,"id":1129,"parentId":1117,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2138,"timestamp":40881757004,"id":1130,"parentId":1120,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":23594,"timestamp":40881736145,"id":1126,"parentId":1102,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":23801,"timestamp":40881736179,"id":1127,"parentId":1102,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/delete.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24109,"timestamp":40881736108,"id":1125,"parentId":1100,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1733737092101,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2749421,"timestamp":40879012391,"id":21,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2749428,"timestamp":40879012405,"id":22,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748675,"timestamp":40879013167,"id":137,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748540,"timestamp":40879013309,"id":180,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748536,"timestamp":40879013318,"id":183,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748532,"timestamp":40879013328,"id":186,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748542,"timestamp":40879013321,"id":184,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748527,"timestamp":40879013341,"id":189,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748567,"timestamp":40879013306,"id":179,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748562,"timestamp":40879013315,"id":182,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748569,"timestamp":40879013312,"id":181,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748531,"timestamp":40879013354,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748559,"timestamp":40879013330,"id":187,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748560,"timestamp":40879013334,"id":188,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748712,"timestamp":40879013187,"id":143,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748660,"timestamp":40879013245,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748659,"timestamp":40879013251,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748687,"timestamp":40879013229,"id":155,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748688,"timestamp":40879013232,"id":156,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748752,"timestamp":40879013173,"id":139,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748746,"timestamp":40879013183,"id":142,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748696,"timestamp":40879013238,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748680,"timestamp":40879013264,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748675,"timestamp":40879013274,"id":169,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748741,"timestamp":40879013213,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748732,"timestamp":40879013226,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748695,"timestamp":40879013267,"id":167,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748706,"timestamp":40879013261,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748694,"timestamp":40879013277,"id":170,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748703,"timestamp":40879013271,"id":168,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748801,"timestamp":40879013176,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748803,"timestamp":40879013179,"id":141,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748850,"timestamp":40879013190,"id":144,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748824,"timestamp":40879013223,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2748817,"timestamp":40879013235,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5827,"timestamp":40881757087,"id":1132,"parentId":1067,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.jsx","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6370,"timestamp":40881757120,"id":1133,"parentId":1067,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.jsx","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7504,"timestamp":40881757148,"id":1134,"parentId":1065,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.jsx","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7720,"timestamp":40881757189,"id":1135,"parentId":1093,"tags":{"name":"/app/functions/frontend/addNewIndex.js","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9160,"timestamp":40881757038,"id":1131,"parentId":1053,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.jsx","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5930,"timestamp":40881760683,"id":1139,"parentId":1050,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.jsx","layer":null},"startTime":1733737092126,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":11596,"timestamp":40881760730,"id":1140,"parentId":1050,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.jsx","layer":null},"startTime":1733737092126,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12334,"timestamp":40881760598,"id":1138,"parentId":1050,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.jsx","layer":null},"startTime":1733737092125,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12513,"timestamp":40881760765,"id":1141,"parentId":1050,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.jsx","layer":null},"startTime":1733737092126,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":28835,"timestamp":40881745275,"id":1128,"parentId":1099,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1733737092110,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24455,"timestamp":40881757222,"id":1136,"parentId":1115,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24625,"timestamp":40881757261,"id":1137,"parentId":1116,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1733737092122,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3552,"timestamp":40881778707,"id":1143,"parentId":1050,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.jsx","layer":null},"startTime":1733737092144,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6104,"timestamp":40881778610,"id":1142,"parentId":1050,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.jsx","layer":null},"startTime":1733737092143,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6681,"timestamp":40881782374,"id":1146,"parentId":1072,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.js","layer":null},"startTime":1733737092147,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5208,"timestamp":40881784967,"id":1147,"parentId":1092,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.jsx","layer":null},"startTime":1733737092150,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14286,"timestamp":40881778786,"id":1145,"parentId":1130,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1733737092144,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14621,"timestamp":40881778745,"id":1144,"parentId":1130,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1733737092144,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3126,"timestamp":40881791776,"id":1149,"parentId":1050,"tags":{"name":"/app/components/general/Modal.jsx","layer":null},"startTime":1733737092157,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3822,"timestamp":40881791849,"id":1150,"parentId":1120,"tags":{"name":"/app/components/su/components/RichText/fns.js","layer":null},"startTime":1733737092157,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17,"timestamp":40881796143,"id":1154,"parentId":1043,"tags":{"name":"@tinymce/tinymce-react","layer":null},"startTime":1733737092161,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":2133,"timestamp":40881796109,"id":1153,"parentId":1105,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.jsx","layer":null},"startTime":1733737092161,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":2712,"timestamp":40881796070,"id":1152,"parentId":1105,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.jsx","layer":null},"startTime":1733737092161,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3263,"timestamp":40881795980,"id":1151,"parentId":1105,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.jsx","layer":null},"startTime":1733737092161,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":17,"timestamp":40881799685,"id":1155,"parentId":1149,"tags":{"name":"react-dom/client","layer":null},"startTime":1733737092165,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11013,"timestamp":40881790433,"id":1148,"parentId":1128,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1733737092155,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2788579,"timestamp":40879013210,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2789738,"timestamp":40879012364,"id":20,"parentId":18,"tags":{"request":"private-next-pages/_document.js"},"startTime":1733737089377,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1108,"timestamp":40881804547,"id":1159,"parentId":1153,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092169,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2792735,"timestamp":40879013248,"id":161,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2792830,"timestamp":40879013170,"id":138,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2792765,"timestamp":40879013242,"id":159,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2792812,"timestamp":40879013202,"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%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2792799,"timestamp":40879013220,"id":152,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2792830,"timestamp":40879013194,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":4956,"timestamp":40881801574,"id":1156,"parentId":1118,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.jsx","layer":null},"startTime":1733737092166,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5332,"timestamp":40881801708,"id":1158,"parentId":1119,"tags":{"name":"/app/components/su/components/UserSingleFile.jsx","layer":null},"startTime":1733737092167,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5810,"timestamp":40881801666,"id":1157,"parentId":1119,"tags":{"name":"/app/components/su/components/UserFolder.jsx","layer":null},"startTime":1733737092166,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5215,"timestamp":40881807733,"id":1160,"parentId":1120,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.jsx","layer":null},"startTime":1733737092173,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1522,"timestamp":40881813057,"id":1161,"parentId":1158,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092178,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1904,"timestamp":40881813272,"id":1162,"parentId":1157,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092178,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2802664,"timestamp":40879013395,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":887,"timestamp":40881816552,"id":1165,"parentId":1160,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092181,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":2788,"timestamp":40881815448,"id":1163,"parentId":1133,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.jsx","layer":null},"startTime":1733737092180,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2805472,"timestamp":40879013357,"id":194,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2805482,"timestamp":40879013360,"id":195,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2805479,"timestamp":40879013373,"id":199,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":890,"timestamp":40881819539,"id":1168,"parentId":1163,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737092184,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2666,"timestamp":40881818345,"id":1166,"parentId":1147,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.js","layer":null},"startTime":1733737092183,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5685,"timestamp":40881815528,"id":1164,"parentId":1159,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1733737092180,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2410,"timestamp":40881819175,"id":1167,"parentId":1132,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.js","layer":null},"startTime":1733737092184,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2808785,"timestamp":40879013254,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2808800,"timestamp":40879013258,"id":164,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2809579,"timestamp":40879013216,"id":151,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1613,"timestamp":40881823848,"id":1170,"parentId":1168,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1733737092189,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1922,"timestamp":40881823741,"id":1169,"parentId":1168,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1733737092189,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1467,"timestamp":40881825766,"id":1171,"parentId":1167,"tags":{"name":"/app/functions/frontend/handleCopyHTML.js","layer":null},"startTime":1733737092191,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1955,"timestamp":40881825844,"id":1172,"parentId":1167,"tags":{"name":"/app/functions/frontend/handleEmbed.js","layer":null},"startTime":1733737092191,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1721,"timestamp":40881826390,"id":1173,"parentId":1167,"tags":{"name":"/app/functions/frontend/handleEditHTML.js","layer":null},"startTime":1733737092191,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":1670,"timestamp":40881832402,"id":1174,"parentId":1171,"tags":{"name":"/app/components/general/EmbedPopupContent.jsx","layer":null},"startTime":1733737092197,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":1609,"timestamp":40881833129,"id":1175,"parentId":1173,"tags":{"name":"/app/components/general/EditHTMLPopupContent.jsx","layer":null},"startTime":1733737092198,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":18,"timestamp":40881836123,"id":1176,"parentId":1175,"tags":{"name":"html-prettify","layer":null},"startTime":1733737092201,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2822991,"timestamp":40879013197,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":2822990,"timestamp":40879013207,"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%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733737089378,"traceId":"abc7307b6d44cd6e"},{"name":"make","duration":2824929,"timestamp":40879011514,"id":18,"parentId":16,"tags":{},"startTime":1733737089376,"traceId":"abc7307b6d44cd6e"},{"name":"get-entries","duration":994,"timestamp":40881837661,"id":1178,"parentId":1177,"tags":{},"startTime":1733737092202,"traceId":"abc7307b6d44cd6e"},{"name":"node-file-trace-plugin","duration":18902109,"timestamp":40881848452,"id":1179,"parentId":1177,"tags":{"traceEntryCount":"382"},"startTime":1733737092213,"traceId":"abc7307b6d44cd6e"},{"name":"collect-traced-files","duration":24512,"timestamp":40900750583,"id":1180,"parentId":1177,"tags":{},"startTime":1733737111115,"traceId":"abc7307b6d44cd6e"},{"name":"finish-modules","duration":18937692,"timestamp":40881837424,"id":1177,"parentId":17,"tags":{},"startTime":1733737092202,"traceId":"abc7307b6d44cd6e"},{"name":"chunk-graph","duration":39694,"timestamp":40900843185,"id":1182,"parentId":1181,"tags":{},"startTime":1733737111208,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-modules","duration":35,"timestamp":40900883039,"id":1184,"parentId":1181,"tags":{},"startTime":1733737111248,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-chunks","duration":49562,"timestamp":40900883171,"id":1185,"parentId":1181,"tags":{},"startTime":1733737111248,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-tree","duration":159,"timestamp":40900932873,"id":1186,"parentId":1181,"tags":{},"startTime":1733737111298,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-chunk-modules","duration":90287,"timestamp":40900933207,"id":1187,"parentId":1181,"tags":{},"startTime":1733737111298,"traceId":"abc7307b6d44cd6e"},{"name":"optimize","duration":140646,"timestamp":40900882975,"id":1183,"parentId":1181,"tags":{},"startTime":1733737111248,"traceId":"abc7307b6d44cd6e"},{"name":"module-hash","duration":42718,"timestamp":40901043386,"id":1188,"parentId":1181,"tags":{},"startTime":1733737111408,"traceId":"abc7307b6d44cd6e"},{"name":"code-generation","duration":415196,"timestamp":40901086202,"id":1189,"parentId":1181,"tags":{},"startTime":1733737111451,"traceId":"abc7307b6d44cd6e"},{"name":"hash","duration":24017,"timestamp":40901509896,"id":1190,"parentId":1181,"tags":{},"startTime":1733737111875,"traceId":"abc7307b6d44cd6e"},{"name":"code-generation-jobs","duration":954,"timestamp":40901533911,"id":1191,"parentId":1181,"tags":{},"startTime":1733737111899,"traceId":"abc7307b6d44cd6e"},{"name":"module-assets","duration":485,"timestamp":40901534739,"id":1192,"parentId":1181,"tags":{},"startTime":1733737111900,"traceId":"abc7307b6d44cd6e"},{"name":"create-chunk-assets","duration":39388,"timestamp":40901535238,"id":1193,"parentId":1181,"tags":{},"startTime":1733737111900,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":163591,"timestamp":40901624289,"id":1196,"parentId":1194,"tags":{"name":"../pages/_document.js","cache":"MISS"},"startTime":1733737111989,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":163150,"timestamp":40901624815,"id":1197,"parentId":1194,"tags":{"name":"../pages/404.js","cache":"MISS"},"startTime":1733737111990,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":162301,"timestamp":40901625706,"id":1198,"parentId":1194,"tags":{"name":"../pages/500.js","cache":"MISS"},"startTime":1733737111991,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":161538,"timestamp":40901626508,"id":1199,"parentId":1194,"tags":{"name":"../pages/api/acceptUserInvitation.js","cache":"MISS"},"startTime":1733737111991,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":166963,"timestamp":40901621114,"id":1195,"parentId":1194,"tags":{"name":"../pages/_error.js","cache":"MISS"},"startTime":1733737111986,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":161246,"timestamp":40901626863,"id":1200,"parentId":1194,"tags":{"name":"../pages/api/addApiKey.js","cache":"MISS"},"startTime":1733737111992,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":160784,"timestamp":40901627350,"id":1202,"parentId":1194,"tags":{"name":"../pages/api/addDbUser.js","cache":"MISS"},"startTime":1733737111992,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":161043,"timestamp":40901627119,"id":1201,"parentId":1194,"tags":{"name":"../pages/api/addAdminUserUser.js","cache":"MISS"},"startTime":1733737111992,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":160634,"timestamp":40901627561,"id":1203,"parentId":1194,"tags":{"name":"../pages/api/addTableEntry.js","cache":"MISS"},"startTime":1733737111992,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":160399,"timestamp":40901627831,"id":1204,"parentId":1194,"tags":{"name":"../pages/api/addSocialLogin.js","cache":"MISS"},"startTime":1733737111993,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":159811,"timestamp":40901628444,"id":1206,"parentId":1194,"tags":{"name":"../pages/api/addUsersTableToDatabase.js","cache":"MISS"},"startTime":1733737111993,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":160146,"timestamp":40901628133,"id":1205,"parentId":1194,"tags":{"name":"../pages/api/addNewMediaFolder.js","cache":"MISS"},"startTime":1733737111993,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":159618,"timestamp":40901628682,"id":1207,"parentId":1194,"tags":{"name":"../pages/api/addUserTable.js","cache":"MISS"},"startTime":1733737111994,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":159350,"timestamp":40901628973,"id":1208,"parentId":1194,"tags":{"name":"../pages/api/addUserUser.js","cache":"MISS"},"startTime":1733737111994,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153692,"timestamp":40901634662,"id":1210,"parentId":1194,"tags":{"name":"../pages/api/admin/clearErrorLogs.js","cache":"MISS"},"startTime":1733737111999,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":159174,"timestamp":40901629207,"id":1209,"parentId":1194,"tags":{"name":"../pages/api/admin/addUserBackup.js","cache":"MISS"},"startTime":1733737111994,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153589,"timestamp":40901634819,"id":1211,"parentId":1194,"tags":{"name":"../pages/api/admin/clientError.js","cache":"MISS"},"startTime":1733737112000,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153477,"timestamp":40901634959,"id":1212,"parentId":1194,"tags":{"name":"../pages/api/admin/createNewBackup.js","cache":"MISS"},"startTime":1733737112000,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152690,"timestamp":40901635768,"id":1215,"parentId":1194,"tags":{"name":"../pages/api/admin/getUserData.js","cache":"MISS"},"startTime":1733737112001,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153059,"timestamp":40901635422,"id":1214,"parentId":1194,"tags":{"name":"../pages/api/admin/docs/[action].js","cache":"MISS"},"startTime":1733737112000,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153364,"timestamp":40901635143,"id":1213,"parentId":1194,"tags":{"name":"../pages/api/admin/getTablesForUserDatabase.js","cache":"MISS"},"startTime":1733737112000,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152384,"timestamp":40901636145,"id":1217,"parentId":1194,"tags":{"name":"../pages/api/admin/grabBackups.js","cache":"MISS"},"startTime":1733737112001,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152569,"timestamp":40901635978,"id":1216,"parentId":1194,"tags":{"name":"../pages/api/admin/getUserBackups.js","cache":"MISS"},"startTime":1733737112001,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152271,"timestamp":40901636294,"id":1218,"parentId":1194,"tags":{"name":"../pages/api/admin/grabErrorLogs.js","cache":"MISS"},"startTime":1733737112001,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152154,"timestamp":40901636445,"id":1219,"parentId":1194,"tags":{"name":"../pages/api/admin/grabFile.js","cache":"MISS"},"startTime":1733737112001,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152039,"timestamp":40901636582,"id":1220,"parentId":1194,"tags":{"name":"../pages/api/admin/loginSuUser.js","cache":"MISS"},"startTime":1733737112001,"traceId":"abc7307b6d44cd6e"}] -[{"name":"minify-js","duration":152014,"timestamp":40901636966,"id":1222,"parentId":1194,"tags":{"name":"../pages/api/admin/updateEnv.js","cache":"MISS"},"startTime":1733737112002,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151888,"timestamp":40901637123,"id":1223,"parentId":1194,"tags":{"name":"../pages/api/changeDbUserPassword.js","cache":"MISS"},"startTime":1733737112002,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151486,"timestamp":40901637554,"id":1225,"parentId":1194,"tags":{"name":"../pages/api/clientSideAuth.js","cache":"MISS"},"startTime":1733737112002,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152337,"timestamp":40901636735,"id":1221,"parentId":1194,"tags":{"name":"../pages/api/admin/runUserDbQuery.js","cache":"MISS"},"startTime":1733737112002,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151804,"timestamp":40901637297,"id":1224,"parentId":1194,"tags":{"name":"../pages/api/checkDuplicateData.js","cache":"MISS"},"startTime":1733737112002,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151396,"timestamp":40901637725,"id":1226,"parentId":1194,"tags":{"name":"../pages/api/checkExistingFolder.js","cache":"MISS"},"startTime":1733737112003,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":150730,"timestamp":40901638415,"id":1229,"parentId":1194,"tags":{"name":"../pages/api/connect.js","cache":"MISS"},"startTime":1733737112003,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151005,"timestamp":40901638162,"id":1228,"parentId":1194,"tags":{"name":"../pages/api/connect/handshake.js","cache":"MISS"},"startTime":1733737112003,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151309,"timestamp":40901637884,"id":1227,"parentId":1194,"tags":{"name":"../pages/api/connect/disconnect.js","cache":"MISS"},"startTime":1733737112003,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":150640,"timestamp":40901638577,"id":1230,"parentId":1194,"tags":{"name":"../pages/api/connect/verify.js","cache":"MISS"},"startTime":1733737112003,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":150458,"timestamp":40901638778,"id":1231,"parentId":1194,"tags":{"name":"../pages/api/createUserDatabase.js","cache":"MISS"},"startTime":1733737112004,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":150276,"timestamp":40901639014,"id":1232,"parentId":1194,"tags":{"name":"../pages/api/contact.js","cache":"MISS"},"startTime":1733737112004,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149692,"timestamp":40901639622,"id":1235,"parentId":1194,"tags":{"name":"../pages/api/deleteInvitation.js","cache":"MISS"},"startTime":1733737112004,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":150193,"timestamp":40901639153,"id":1233,"parentId":1194,"tags":{"name":"../pages/api/deleteApiKey.js","cache":"MISS"},"startTime":1733737112004,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149589,"timestamp":40901639780,"id":1236,"parentId":1194,"tags":{"name":"../pages/api/deleteMediaFolder.js","cache":"MISS"},"startTime":1733737112005,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149981,"timestamp":40901639416,"id":1234,"parentId":1194,"tags":{"name":"../pages/api/deleteDbUser.js","cache":"MISS"},"startTime":1733737112004,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149167,"timestamp":40901640254,"id":1238,"parentId":1194,"tags":{"name":"../pages/api/deleteUserDatabase.js","cache":"MISS"},"startTime":1733737112005,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149448,"timestamp":40901639999,"id":1237,"parentId":1194,"tags":{"name":"../pages/api/deleteTableEntry.js","cache":"MISS"},"startTime":1733737112005,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149017,"timestamp":40901640456,"id":1239,"parentId":1194,"tags":{"name":"../pages/api/deleteUser.js","cache":"MISS"},"startTime":1733737112005,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148754,"timestamp":40901640747,"id":1240,"parentId":1194,"tags":{"name":"../pages/api/deleteUserMedia.js","cache":"MISS"},"startTime":1733737112006,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148314,"timestamp":40901641213,"id":1242,"parentId":1194,"tags":{"name":"../pages/api/downloadDatabaseSchema.js","cache":"MISS"},"startTime":1733737112006,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148139,"timestamp":40901641413,"id":1243,"parentId":1194,"tags":{"name":"../pages/api/exportDatabase.js","cache":"MISS"},"startTime":1733737112006,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148600,"timestamp":40901640980,"id":1241,"parentId":1194,"tags":{"name":"../pages/api/deleteUserTable.js","cache":"MISS"},"startTime":1733737112006,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":147488,"timestamp":40901642116,"id":1246,"parentId":1194,"tags":{"name":"../pages/api/getDatabaseTables.js","cache":"MISS"},"startTime":1733737112007,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148027,"timestamp":40901641606,"id":1244,"parentId":1194,"tags":{"name":"../pages/api/fetch-entries-basic.js","cache":"MISS"},"startTime":1733737112006,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":147776,"timestamp":40901641882,"id":1245,"parentId":1194,"tags":{"name":"../pages/api/get-authorized-databases.js","cache":"MISS"},"startTime":1733737112007,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":146985,"timestamp":40901642705,"id":1249,"parentId":1194,"tags":{"name":"../pages/api/getDelegatedDatabases.js","cache":"MISS"},"startTime":1733737112008,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":147455,"timestamp":40901642310,"id":1247,"parentId":1194,"tags":{"name":"../pages/api/deleteUserUser.js","cache":"MISS"},"startTime":1733737112007,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148033,"timestamp":40901642478,"id":1248,"parentId":1194,"tags":{"name":"../pages/api/getDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1733737112007,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148882,"timestamp":40901642871,"id":1250,"parentId":1194,"tags":{"name":"../pages/api/getDiskUsage.js","cache":"MISS"},"startTime":1733737112008,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":150862,"timestamp":40901643079,"id":1251,"parentId":1194,"tags":{"name":"../pages/api/getUserDatabaseTables.js","cache":"MISS"},"startTime":1733737112008,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152177,"timestamp":40901643247,"id":1252,"parentId":1194,"tags":{"name":"../pages/api/getUserDatabases.js","cache":"MISS"},"startTime":1733737112008,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151805,"timestamp":40901643779,"id":1255,"parentId":1194,"tags":{"name":"../pages/api/healthcheck.js","cache":"MISS"},"startTime":1733737112009,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152796,"timestamp":40901643614,"id":1254,"parentId":1194,"tags":{"name":"../pages/api/getUserMedia.js","cache":"MISS"},"startTime":1733737112008,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153700,"timestamp":40901643413,"id":1253,"parentId":1194,"tags":{"name":"../pages/api/getUserSchemaData.js","cache":"MISS"},"startTime":1733737112008,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":156574,"timestamp":40901644209,"id":1257,"parentId":1194,"tags":{"name":"../pages/api/importDatabaseSchema.js","cache":"MISS"},"startTime":1733737112009,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":160251,"timestamp":40901644671,"id":1259,"parentId":1194,"tags":{"name":"../pages/api/loginUser.js","cache":"MISS"},"startTime":1733737112009,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":161598,"timestamp":40901643889,"id":1256,"parentId":1194,"tags":{"name":"../pages/api/importDatabase.js","cache":"MISS"},"startTime":1733737112009,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":160694,"timestamp":40901645029,"id":1260,"parentId":1194,"tags":{"name":"../pages/api/logoutUser.js","cache":"MISS"},"startTime":1733737112010,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":162869,"timestamp":40901644401,"id":1258,"parentId":1194,"tags":{"name":"../pages/api/infiniteScroll.js","cache":"MISS"},"startTime":1733737112009,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":165911,"timestamp":40901645403,"id":1262,"parentId":1194,"tags":{"name":"../pages/api/purgeDb.js","cache":"MISS"},"startTime":1733737112010,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":165950,"timestamp":40901645578,"id":1263,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/get-schema.js","cache":"MISS"},"startTime":1733737112010,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":166431,"timestamp":40901645197,"id":1261,"parentId":1194,"tags":{"name":"../pages/api/media/addPrivateMedia.js","cache":"MISS"},"startTime":1733737112010,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":166388,"timestamp":40901645758,"id":1264,"parentId":1194,"tags":{"name":"../pages/api/media/getPrivateMedia.js","cache":"MISS"},"startTime":1733737112011,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":168741,"timestamp":40901645931,"id":1265,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/get.js","cache":"MISS"},"startTime":1733737112011,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":169312,"timestamp":40901646123,"id":1266,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/update-schema-from-single-database.js","cache":"MISS"},"startTime":1733737112011,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":173188,"timestamp":40901646512,"id":1268,"parentId":1194,"tags":{"name":"../pages/api/reAuthenticateUser.js","cache":"MISS"},"startTime":1733737112011,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":174935,"timestamp":40901646287,"id":1267,"parentId":1194,"tags":{"name":"../pages/api/queryEntriesSearchTerm.js","cache":"MISS"},"startTime":1733737112011,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":175411,"timestamp":40901647245,"id":1271,"parentId":1194,"tags":{"name":"../pages/api/resetPassword.js","cache":"MISS"},"startTime":1733737112012,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":176327,"timestamp":40901646941,"id":1270,"parentId":1194,"tags":{"name":"../pages/api/registerUser.js","cache":"MISS"},"startTime":1733737112012,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":178003,"timestamp":40901646722,"id":1269,"parentId":1194,"tags":{"name":"../pages/api/refreshEntry.js","cache":"MISS"},"startTime":1733737112012,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":178635,"timestamp":40901647371,"id":1272,"parentId":1194,"tags":{"name":"../pages/api/resetDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1733737112012,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":179864,"timestamp":40901648196,"id":1276,"parentId":1194,"tags":{"name":"../pages/api/social-login/facebook-auth.js","cache":"MISS"},"startTime":1733737112013,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":181971,"timestamp":40901647841,"id":1274,"parentId":1194,"tags":{"name":"../pages/api/sendEmailVerificationLink.js","cache":"MISS"},"startTime":1733737112013,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":184416,"timestamp":40901647645,"id":1273,"parentId":1194,"tags":{"name":"../pages/api/runUserDbQuery.js","cache":"MISS"},"startTime":1733737112012,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":183788,"timestamp":40901648464,"id":1278,"parentId":1194,"tags":{"name":"../pages/api/social-login/google-auth.js","cache":"MISS"},"startTime":1733737112013,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":184086,"timestamp":40901648329,"id":1277,"parentId":1194,"tags":{"name":"../pages/api/sendPasswordResetLink.js","cache":"MISS"},"startTime":1733737112013,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":185340,"timestamp":40901648007,"id":1275,"parentId":1194,"tags":{"name":"../pages/api/renameMedia.js","cache":"MISS"},"startTime":1733737112013,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":186430,"timestamp":40901648862,"id":1280,"parentId":1194,"tags":{"name":"../pages/api/social-login/utils/checkSocialId.js","cache":"MISS"},"startTime":1733737112014,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":186395,"timestamp":40901648972,"id":1281,"parentId":1194,"tags":{"name":"../pages/api/social-login/utils/checkEmail.js","cache":"MISS"},"startTime":1733737112014,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":187416,"timestamp":40901649092,"id":1282,"parentId":1194,"tags":{"name":"../pages/api/social-login/utils/getEmailFromSocialId.js","cache":"MISS"},"startTime":1733737112014,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":188540,"timestamp":40901648602,"id":1279,"parentId":1194,"tags":{"name":"../pages/api/social-login/github-auth.js","cache":"MISS"},"startTime":1733737112013,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":188915,"timestamp":40901649198,"id":1283,"parentId":1194,"tags":{"name":"../pages/api/sql-users/create.js","cache":"MISS"},"startTime":1733737112014,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":189548,"timestamp":40901649775,"id":1286,"parentId":1194,"tags":{"name":"../pages/api/stream/[path].js","cache":"MISS"},"startTime":1733737112015,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":189828,"timestamp":40901649623,"id":1285,"parentId":1194,"tags":{"name":"../pages/api/sql-users/update.js","cache":"MISS"},"startTime":1733737112014,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":192445,"timestamp":40901649380,"id":1284,"parentId":1194,"tags":{"name":"../pages/api/sql-users/delete.js","cache":"MISS"},"startTime":1733737112014,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":193059,"timestamp":40901650100,"id":1288,"parentId":1194,"tags":{"name":"../pages/api/test/mail.js","cache":"MISS"},"startTime":1733737112015,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":193151,"timestamp":40901650230,"id":1289,"parentId":1194,"tags":{"name":"../pages/api/updateAdminUserAccess.js","cache":"MISS"},"startTime":1733737112015,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":193122,"timestamp":40901650393,"id":1290,"parentId":1194,"tags":{"name":"../pages/api/test/cors.js","cache":"MISS"},"startTime":1733737112015,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":194149,"timestamp":40901650578,"id":1291,"parentId":1194,"tags":{"name":"../pages/api/unsubscribe.js","cache":"MISS"},"startTime":1733737112015,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":195847,"timestamp":40901649875,"id":1287,"parentId":1194,"tags":{"name":"../pages/api/sync-table-data.js","cache":"MISS"},"startTime":1733737112015,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":198457,"timestamp":40901650675,"id":1292,"parentId":1194,"tags":{"name":"../pages/api/updateClonedTableForeignKeys.js","cache":"MISS"},"startTime":1733737112016,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":201246,"timestamp":40901650823,"id":1293,"parentId":1194,"tags":{"name":"../pages/api/updateDbSchemaDataForUser.js","cache":"MISS"},"startTime":1733737112016,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":202457,"timestamp":40901651055,"id":1294,"parentId":1194,"tags":{"name":"../pages/api/updateDbUser.js","cache":"MISS"},"startTime":1733737112016,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":206230,"timestamp":40901651230,"id":1295,"parentId":1194,"tags":{"name":"../pages/api/updateTableEntry.js","cache":"MISS"},"startTime":1733737112016,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":209395,"timestamp":40901651463,"id":1296,"parentId":1194,"tags":{"name":"../pages/api/updateUser.js","cache":"MISS"},"startTime":1733737112016,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":212694,"timestamp":40901651679,"id":1297,"parentId":1194,"tags":{"name":"../pages/api/updateUserDatabase.js","cache":"MISS"},"startTime":1733737112017,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":212540,"timestamp":40901651898,"id":1298,"parentId":1194,"tags":{"name":"../pages/api/updateUserTable.js","cache":"MISS"},"startTime":1733737112017,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":214059,"timestamp":40901652088,"id":1299,"parentId":1194,"tags":{"name":"../pages/api/updateUserUser.js","cache":"MISS"},"startTime":1733737112017,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":213966,"timestamp":40901652233,"id":1300,"parentId":1194,"tags":{"name":"../pages/api/user-schema/replace-database-schema.js","cache":"MISS"},"startTime":1733737112017,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":218791,"timestamp":40901653108,"id":1304,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/github-login.js","cache":"MISS"},"startTime":1733737112018,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":220784,"timestamp":40901652711,"id":1302,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/delete-user.js","cache":"MISS"},"startTime":1733737112018,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":221468,"timestamp":40901652377,"id":1301,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/add-user.js","cache":"MISS"},"startTime":1733737112017,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":221538,"timestamp":40901652918,"id":1303,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/get-user.js","cache":"MISS"},"startTime":1733737112018,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":222266,"timestamp":40901653304,"id":1305,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/google-login.js","cache":"MISS"},"startTime":1733737112018,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":224482,"timestamp":40901653488,"id":1306,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/grab-google-user-from-token.js","cache":"MISS"},"startTime":1733737112018,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":229818,"timestamp":40901653835,"id":1308,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/reauth-user.js","cache":"MISS"},"startTime":1733737112019,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":231621,"timestamp":40901653610,"id":1307,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/login-user.js","cache":"MISS"},"startTime":1733737112018,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":231578,"timestamp":40901654024,"id":1309,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/send-email-code.js","cache":"MISS"},"startTime":1733737112019,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":231285,"timestamp":40901654577,"id":1312,"parentId":1194,"tags":{"name":"../pages/_app.js","cache":"MISS"},"startTime":1733737112019,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":231686,"timestamp":40901654485,"id":1311,"parentId":1194,"tags":{"name":"../pages/api/webhooks/github-push.js","cache":"MISS"},"startTime":1733737112019,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":233126,"timestamp":40901654622,"id":1313,"parentId":1194,"tags":{"name":"../pages/about.js","cache":"MISS"},"startTime":1733737112019,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":236223,"timestamp":40901654238,"id":1310,"parentId":1194,"tags":{"name":"../pages/api/user/[user_id]/update-user.js","cache":"MISS"},"startTime":1733737112019,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":241846,"timestamp":40901654806,"id":1314,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/edit-database.js","cache":"MISS"},"startTime":1733737112020,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":243742,"timestamp":40901655338,"id":1315,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/api-keys.js","cache":"MISS"},"startTime":1733737112020,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":242221,"timestamp":40901656995,"id":1317,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single].js","cache":"MISS"},"startTime":1733737112022,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":249054,"timestamp":40901656054,"id":1316,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/connect.js","cache":"MISS"},"startTime":1733737112021,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":257450,"timestamp":40901657404,"id":1318,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/connect.js","cache":"MISS"},"startTime":1733737112022,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":256985,"timestamp":40901657962,"id":1319,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/shell.js","cache":"MISS"},"startTime":1733737112023,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":257552,"timestamp":40901659007,"id":1321,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","cache":"MISS"},"startTime":1733737112024,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":259620,"timestamp":40901658392,"id":1320,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/schema.js","cache":"MISS"},"startTime":1733737112023,"traceId":"abc7307b6d44cd6e"}] -[{"name":"minify-js","duration":262161,"timestamp":40901660690,"id":1325,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","cache":"MISS"},"startTime":1733737112026,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":266175,"timestamp":40901659436,"id":1322,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","cache":"MISS"},"startTime":1733737112024,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":265895,"timestamp":40901660353,"id":1324,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","cache":"MISS"},"startTime":1733737112025,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":265896,"timestamp":40901660928,"id":1326,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","cache":"MISS"},"startTime":1733737112026,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":267727,"timestamp":40901659909,"id":1323,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","cache":"MISS"},"startTime":1733737112025,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":266535,"timestamp":40901662828,"id":1330,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user].js","cache":"MISS"},"startTime":1733737112028,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":272278,"timestamp":40901662518,"id":1329,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables.js","cache":"MISS"},"startTime":1733737112027,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":281589,"timestamp":40901662906,"id":1331,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-user.js","cache":"MISS"},"startTime":1733737112028,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":284991,"timestamp":40901661113,"id":1327,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table].js","cache":"MISS"},"startTime":1733737112026,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":284924,"timestamp":40901661902,"id":1328,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/add-table.js","cache":"MISS"},"startTime":1733737112027,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":283529,"timestamp":40901664120,"id":1334,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases.js","cache":"MISS"},"startTime":1733737112029,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":285078,"timestamp":40901663305,"id":1332,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","cache":"MISS"},"startTime":1733737112028,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":284874,"timestamp":40901664395,"id":1336,"parentId":1194,"tags":{"name":"../pages/admin/[user_id].js","cache":"MISS"},"startTime":1733737112029,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":289274,"timestamp":40901664196,"id":1335,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/add-database.js","cache":"MISS"},"startTime":1733737112029,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":291761,"timestamp":40901664465,"id":1337,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/settings.js","cache":"MISS"},"startTime":1733737112029,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":293899,"timestamp":40901663681,"id":1333,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users.js","cache":"MISS"},"startTime":1733737112029,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":293016,"timestamp":40901665163,"id":1339,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/media.js","cache":"MISS"},"startTime":1733737112030,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":297479,"timestamp":40901664807,"id":1338,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/schema.js","cache":"MISS"},"startTime":1733737112030,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":291029,"timestamp":40901671328,"id":1340,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/media/[...folder].js","cache":"MISS"},"startTime":1733737112036,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":296284,"timestamp":40901671737,"id":1341,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database]/[user].js","cache":"MISS"},"startTime":1733737112037,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":297450,"timestamp":40901672481,"id":1343,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/users/databases.js","cache":"MISS"},"startTime":1733737112037,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":297389,"timestamp":40901673149,"id":1345,"parentId":1194,"tags":{"name":"../pages/admin.js","cache":"MISS"},"startTime":1733737112038,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":298485,"timestamp":40901672104,"id":1342,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/users/add-user.js","cache":"MISS"},"startTime":1733737112037,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":299261,"timestamp":40901672825,"id":1344,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database].js","cache":"MISS"},"startTime":1733737112038,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":300116,"timestamp":40901674104,"id":1349,"parentId":1194,"tags":{"name":"../pages/api/fetch-media.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":302447,"timestamp":40901673967,"id":1348,"parentId":1194,"tags":{"name":"../pages/api/exportTableData.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":305630,"timestamp":40901673763,"id":1347,"parentId":1194,"tags":{"name":"../pages/api/addUserMedia.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":307977,"timestamp":40901673296,"id":1346,"parentId":1194,"tags":{"name":"../pages/admin/[user_id]/users.js","cache":"MISS"},"startTime":1733737112038,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":307440,"timestamp":40901674195,"id":1350,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/add-image.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":308756,"timestamp":40901674362,"id":1351,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/add-file.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":309857,"timestamp":40901674634,"id":1353,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/post.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":310978,"timestamp":40901674506,"id":1352,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/get-private-file.js","cache":"MISS"},"startTime":1733737112039,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":311794,"timestamp":40901674897,"id":1355,"parentId":1194,"tags":{"name":"../pages/blog.js","cache":"MISS"},"startTime":1733737112040,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":312586,"timestamp":40901675369,"id":1357,"parentId":1194,"tags":{"name":"../pages/docs/[page].js","cache":"MISS"},"startTime":1733737112040,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":314565,"timestamp":40901675076,"id":1356,"parentId":1194,"tags":{"name":"../pages/contact.js","cache":"MISS"},"startTime":1733737112040,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":315487,"timestamp":40901674747,"id":1354,"parentId":1194,"tags":{"name":"../pages/api/query/[user_id]/delete-file.js","cache":"MISS"},"startTime":1733737112040,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":318262,"timestamp":40901675546,"id":1358,"parentId":1194,"tags":{"name":"../pages/docs.js","cache":"MISS"},"startTime":1733737112040,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":318792,"timestamp":40901676443,"id":1360,"parentId":1194,"tags":{"name":"../pages/index.js","cache":"MISS"},"startTime":1733737112041,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":321731,"timestamp":40901677622,"id":1363,"parentId":1194,"tags":{"name":"../pages/docs/[page]/[sub-page].js","cache":"MISS"},"startTime":1733737112042,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":323511,"timestamp":40901676919,"id":1361,"parentId":1194,"tags":{"name":"../pages/login.js","cache":"MISS"},"startTime":1733737112042,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":323960,"timestamp":40901677274,"id":1362,"parentId":1194,"tags":{"name":"../pages/privacy.js","cache":"MISS"},"startTime":1733737112042,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":326639,"timestamp":40901678107,"id":1365,"parentId":1194,"tags":{"name":"../pages/redirect.js","cache":"MISS"},"startTime":1733737112043,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":330272,"timestamp":40901675850,"id":1359,"parentId":1194,"tags":{"name":"../pages/create-account.js","cache":"MISS"},"startTime":1733737112041,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":331702,"timestamp":40901678503,"id":1367,"parentId":1194,"tags":{"name":"../pages/su/console.js","cache":"MISS"},"startTime":1733737112043,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":332214,"timestamp":40901678261,"id":1366,"parentId":1194,"tags":{"name":"../pages/logout.js","cache":"MISS"},"startTime":1733737112043,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":332908,"timestamp":40901677824,"id":1364,"parentId":1194,"tags":{"name":"../pages/email-verification.js","cache":"MISS"},"startTime":1733737112043,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":332346,"timestamp":40901678731,"id":1368,"parentId":1194,"tags":{"name":"../pages/su/backups.js","cache":"MISS"},"startTime":1733737112044,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":334078,"timestamp":40901679304,"id":1370,"parentId":1194,"tags":{"name":"../pages/su/docs/create-page.js","cache":"MISS"},"startTime":1733737112044,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":334047,"timestamp":40901679622,"id":1372,"parentId":1194,"tags":{"name":"../pages/su/docs.js","cache":"MISS"},"startTime":1733737112044,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":334266,"timestamp":40901679463,"id":1371,"parentId":1194,"tags":{"name":"../pages/su/docs/edit-page.js","cache":"MISS"},"startTime":1733737112044,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":336497,"timestamp":40901679758,"id":1373,"parentId":1194,"tags":{"name":"../pages/su/docs/pages.js","cache":"MISS"},"startTime":1733737112045,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":336578,"timestamp":40901680131,"id":1375,"parentId":1194,"tags":{"name":"../pages/su/docs/pages/[id].js","cache":"MISS"},"startTime":1733737112045,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":339006,"timestamp":40901679903,"id":1374,"parentId":1194,"tags":{"name":"../pages/su/envar.js","cache":"MISS"},"startTime":1733737112045,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":340519,"timestamp":40901679002,"id":1369,"parentId":1194,"tags":{"name":"../pages/send-password-reset-link.js","cache":"MISS"},"startTime":1733737112044,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":342032,"timestamp":40901680292,"id":1376,"parentId":1194,"tags":{"name":"../pages/su/error-logs.js","cache":"MISS"},"startTime":1733737112045,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":342225,"timestamp":40901680555,"id":1377,"parentId":1194,"tags":{"name":"../pages/su.js","cache":"MISS"},"startTime":1733737112045,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":349028,"timestamp":40901680776,"id":1378,"parentId":1194,"tags":{"name":"../pages/su/load-balancing.js","cache":"MISS"},"startTime":1733737112046,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":349614,"timestamp":40901681114,"id":1379,"parentId":1194,"tags":{"name":"../pages/reset-password.js","cache":"MISS"},"startTime":1733737112046,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":349502,"timestamp":40901681429,"id":1380,"parentId":1194,"tags":{"name":"../pages/su/servers.js","cache":"MISS"},"startTime":1733737112046,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":350001,"timestamp":40901681652,"id":1381,"parentId":1194,"tags":{"name":"../pages/su/login.js","cache":"MISS"},"startTime":1733737112046,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":352012,"timestamp":40901683368,"id":1385,"parentId":1194,"tags":{"name":"../pages/su/users/new.js","cache":"MISS"},"startTime":1733737112048,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":352646,"timestamp":40901683135,"id":1384,"parentId":1194,"tags":{"name":"../pages/su/users.js","cache":"MISS"},"startTime":1733737112048,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":355607,"timestamp":40901682659,"id":1383,"parentId":1194,"tags":{"name":"../pages/terms.js","cache":"MISS"},"startTime":1733737112047,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":355833,"timestamp":40901683810,"id":1387,"parentId":1194,"tags":{"name":"../webpack-runtime.js","cache":"MISS"},"startTime":1733737112049,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":355953,"timestamp":40901684202,"id":1388,"parentId":1194,"tags":{"name":"../webpack-api-runtime.js","cache":"MISS"},"startTime":1733737112049,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":359727,"timestamp":40901683562,"id":1386,"parentId":1194,"tags":{"name":"../pages/unsubscribe.js","cache":"MISS"},"startTime":1733737112048,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":362238,"timestamp":40901685248,"id":1391,"parentId":1194,"tags":{"name":"6521.js","cache":"MISS"},"startTime":1733737112050,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":365752,"timestamp":40901681921,"id":1382,"parentId":1194,"tags":{"name":"../pages/su/users/[single].js","cache":"MISS"},"startTime":1733737112047,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":362763,"timestamp":40901685018,"id":1390,"parentId":1194,"tags":{"name":"9821.js","cache":"MISS"},"startTime":1733737112050,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":369446,"timestamp":40901686546,"id":1394,"parentId":1194,"tags":{"name":"4050.js","cache":"MISS"},"startTime":1733737112051,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":371763,"timestamp":40901686117,"id":1393,"parentId":1194,"tags":{"name":"7070.js","cache":"MISS"},"startTime":1733737112051,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":374128,"timestamp":40901685458,"id":1392,"parentId":1194,"tags":{"name":"9600.js","cache":"MISS"},"startTime":1733737112050,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":375394,"timestamp":40901686670,"id":1395,"parentId":1194,"tags":{"name":"5134.js","cache":"MISS"},"startTime":1733737112051,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":375911,"timestamp":40901686864,"id":1396,"parentId":1194,"tags":{"name":"3737.js","cache":"MISS"},"startTime":1733737112052,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":380894,"timestamp":40901687027,"id":1397,"parentId":1194,"tags":{"name":"3932.js","cache":"MISS"},"startTime":1733737112052,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":385092,"timestamp":40901687710,"id":1399,"parentId":1194,"tags":{"name":"9621.js","cache":"MISS"},"startTime":1733737112053,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":388795,"timestamp":40901687424,"id":1398,"parentId":1194,"tags":{"name":"2451.js","cache":"MISS"},"startTime":1733737112052,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":393533,"timestamp":40901688879,"id":1402,"parentId":1194,"tags":{"name":"1614.js","cache":"MISS"},"startTime":1733737112054,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":394617,"timestamp":40901688708,"id":1401,"parentId":1194,"tags":{"name":"4385.js","cache":"MISS"},"startTime":1733737112054,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":396545,"timestamp":40901688052,"id":1400,"parentId":1194,"tags":{"name":"8613.js","cache":"MISS"},"startTime":1733737112053,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":407528,"timestamp":40901690092,"id":1405,"parentId":1194,"tags":{"name":"3460.js","cache":"MISS"},"startTime":1733737112055,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":408698,"timestamp":40901689032,"id":1403,"parentId":1194,"tags":{"name":"5421.js","cache":"MISS"},"startTime":1733737112054,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":410737,"timestamp":40901689610,"id":1404,"parentId":1194,"tags":{"name":"9732.js","cache":"MISS"},"startTime":1733737112054,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":416190,"timestamp":40901690474,"id":1406,"parentId":1194,"tags":{"name":"4312.js","cache":"MISS"},"startTime":1733737112055,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":425643,"timestamp":40901684279,"id":1389,"parentId":1194,"tags":{"name":"883.js","cache":"MISS"},"startTime":1733737112049,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":420209,"timestamp":40901692346,"id":1410,"parentId":1194,"tags":{"name":"2414.js","cache":"MISS"},"startTime":1733737112057,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":423834,"timestamp":40901692564,"id":1411,"parentId":1194,"tags":{"name":"3247.js","cache":"MISS"},"startTime":1733737112057,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":426585,"timestamp":40901691389,"id":1408,"parentId":1194,"tags":{"name":"5664.js","cache":"MISS"},"startTime":1733737112056,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":426894,"timestamp":40901691910,"id":1409,"parentId":1194,"tags":{"name":"2996.js","cache":"MISS"},"startTime":1733737112057,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":429826,"timestamp":40901694149,"id":1414,"parentId":1194,"tags":{"name":"5212.js","cache":"MISS"},"startTime":1733737112059,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":434484,"timestamp":40901690622,"id":1407,"parentId":1194,"tags":{"name":"8842.js","cache":"MISS"},"startTime":1733737112055,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":435201,"timestamp":40901693904,"id":1413,"parentId":1194,"tags":{"name":"9914.js","cache":"MISS"},"startTime":1733737112059,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":436201,"timestamp":40901694538,"id":1416,"parentId":1194,"tags":{"name":"5674.js","cache":"MISS"},"startTime":1733737112059,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":439484,"timestamp":40901694381,"id":1415,"parentId":1194,"tags":{"name":"5264.js","cache":"MISS"},"startTime":1733737112059,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":440333,"timestamp":40901694836,"id":1418,"parentId":1194,"tags":{"name":"45.js","cache":"MISS"},"startTime":1733737112060,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":440965,"timestamp":40901694681,"id":1417,"parentId":1194,"tags":{"name":"8540.js","cache":"MISS"},"startTime":1733737112060,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":442863,"timestamp":40901695120,"id":1419,"parentId":1194,"tags":{"name":"4333.js","cache":"MISS"},"startTime":1733737112060,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":449810,"timestamp":40901692828,"id":1412,"parentId":1194,"tags":{"name":"7640.js","cache":"MISS"},"startTime":1733737112058,"traceId":"abc7307b6d44cd6e"},{"name":"minify-webpack-plugin-optimize","duration":565230,"timestamp":40901577419,"id":1194,"parentId":16,"tags":{"compilationName":"server"},"startTime":1733737111942,"traceId":"abc7307b6d44cd6e"},{"name":"css-minimizer-plugin","duration":216,"timestamp":40902142892,"id":1420,"parentId":16,"tags":{},"startTime":1733737112508,"traceId":"abc7307b6d44cd6e"},{"name":"create-trace-assets","duration":16589,"timestamp":40902143380,"id":1421,"parentId":17,"tags":{},"startTime":1733737112508,"traceId":"abc7307b6d44cd6e"}] -[{"name":"seal","duration":1358716,"timestamp":40900807962,"id":1181,"parentId":16,"tags":{},"startTime":1733737111173,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-compilation","duration":23167645,"timestamp":40878999373,"id":16,"parentId":13,"tags":{"name":"server"},"startTime":1733737089364,"traceId":"abc7307b6d44cd6e"},{"name":"emit","duration":35434,"timestamp":40902167425,"id":1422,"parentId":13,"tags":{},"startTime":1733737112532,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-close","duration":1367763,"timestamp":40902203535,"id":1423,"parentId":13,"tags":{"name":"server"},"startTime":1733737112568,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-generate-error-stats","duration":2915,"timestamp":40903571379,"id":1424,"parentId":1423,"tags":{},"startTime":1733737113936,"traceId":"abc7307b6d44cd6e"},{"name":"make","duration":124,"timestamp":40903605135,"id":1426,"parentId":1425,"tags":{},"startTime":1733737113970,"traceId":"abc7307b6d44cd6e"},{"name":"chunk-graph","duration":44,"timestamp":40903606053,"id":1428,"parentId":1427,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-modules","duration":10,"timestamp":40903606152,"id":1430,"parentId":1427,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-chunks","duration":84,"timestamp":40903606227,"id":1431,"parentId":1427,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-tree","duration":12,"timestamp":40903606362,"id":1432,"parentId":1427,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-chunk-modules","duration":59,"timestamp":40903606456,"id":1433,"parentId":1427,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"optimize","duration":444,"timestamp":40903606114,"id":1429,"parentId":1427,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"module-hash","duration":20,"timestamp":40903606802,"id":1434,"parentId":1427,"tags":{},"startTime":1733737113972,"traceId":"abc7307b6d44cd6e"},{"name":"code-generation","duration":14,"timestamp":40903606836,"id":1435,"parentId":1427,"tags":{},"startTime":1733737113972,"traceId":"abc7307b6d44cd6e"},{"name":"hash","duration":68,"timestamp":40903606904,"id":1436,"parentId":1427,"tags":{},"startTime":1733737113972,"traceId":"abc7307b6d44cd6e"},{"name":"code-generation-jobs","duration":48,"timestamp":40903606971,"id":1437,"parentId":1427,"tags":{},"startTime":1733737113972,"traceId":"abc7307b6d44cd6e"},{"name":"module-assets","duration":22,"timestamp":40903607007,"id":1438,"parentId":1427,"tags":{},"startTime":1733737113972,"traceId":"abc7307b6d44cd6e"},{"name":"create-chunk-assets","duration":16,"timestamp":40903607036,"id":1439,"parentId":1427,"tags":{},"startTime":1733737113972,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":573,"timestamp":40903609728,"id":1441,"parentId":1440,"tags":{"name":"interception-route-rewrite-manifest.js","cache":"MISS"},"startTime":1733737113975,"traceId":"abc7307b6d44cd6e"},{"name":"minify-webpack-plugin-optimize","duration":861,"timestamp":40903609450,"id":1440,"parentId":1425,"tags":{"compilationName":"edge-server"},"startTime":1733737113974,"traceId":"abc7307b6d44cd6e"},{"name":"css-minimizer-plugin","duration":8,"timestamp":40903610350,"id":1442,"parentId":1425,"tags":{},"startTime":1733737113975,"traceId":"abc7307b6d44cd6e"},{"name":"seal","duration":5729,"timestamp":40903605846,"id":1427,"parentId":1425,"tags":{},"startTime":1733737113971,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-compilation","duration":11614,"timestamp":40903600078,"id":1425,"parentId":13,"tags":{"name":"edge-server"},"startTime":1733737113965,"traceId":"abc7307b6d44cd6e"},{"name":"emit","duration":455,"timestamp":40903611835,"id":1443,"parentId":13,"tags":{},"startTime":1733737113977,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-close","duration":24953,"timestamp":40903612827,"id":1444,"parentId":13,"tags":{"name":"edge-server"},"startTime":1733737113978,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-generate-error-stats","duration":1207,"timestamp":40903637799,"id":1445,"parentId":1444,"tags":{},"startTime":1733737114003,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":134,"timestamp":40903662111,"id":1521,"parentId":1520,"tags":{"absolutePagePath":"next/dist/pages/_error"},"startTime":1733737114027,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":2079,"timestamp":40903661187,"id":1520,"parentId":1449,"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":1733737114026,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":19,"timestamp":40903663425,"id":1523,"parentId":1522,"tags":{"absolutePagePath":"private-next-pages/404.jsx"},"startTime":1733737114028,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":265,"timestamp":40903663371,"id":1522,"parentId":1450,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F404.jsx&page=%2F404!","layer":null},"startTime":1733737114028,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903663718,"id":1525,"parentId":1524,"tags":{"absolutePagePath":"private-next-pages/500.jsx"},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":218,"timestamp":40903663673,"id":1524,"parentId":1451,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F500.jsx&page=%2F500!","layer":null},"startTime":1733737114028,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903663951,"id":1527,"parentId":1526,"tags":{"absolutePagePath":"private-next-pages/_app.js"},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":241,"timestamp":40903663908,"id":1526,"parentId":1452,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F_app.js&page=%2F_app!","layer":null},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903664202,"id":1529,"parentId":1528,"tags":{"absolutePagePath":"private-next-pages/about.jsx"},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":219,"timestamp":40903664164,"id":1528,"parentId":1454,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fabout.jsx&page=%2Fabout!","layer":null},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903664439,"id":1531,"parentId":1530,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/edit-database.jsx"},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":271,"timestamp":40903664398,"id":1530,"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%2Fedit-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!","layer":null},"startTime":1733737114029,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903664730,"id":1533,"parentId":1532,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/api-keys/index.jsx"},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":208,"timestamp":40903664688,"id":1532,"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%2Fapi-keys%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!","layer":null},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903664955,"id":1535,"parentId":1534,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/connect/index.jsx"},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":198,"timestamp":40903664913,"id":1534,"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%2Fconnect%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!","layer":null},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":22,"timestamp":40903665169,"id":1537,"parentId":1536,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/index.jsx"},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":233,"timestamp":40903665127,"id":1536,"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%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!","layer":null},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":24,"timestamp":40903665423,"id":1539,"parentId":1538,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/connect.jsx"},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":274,"timestamp":40903665379,"id":1538,"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%2Fconnect.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!","layer":null},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903665709,"id":1541,"parentId":1540,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/shell.jsx"},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":204,"timestamp":40903665668,"id":1540,"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%2Fshell.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!","layer":null},"startTime":1733737114030,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903665934,"id":1543,"parentId":1542,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/schema.jsx"},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":207,"timestamp":40903665888,"id":1542,"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%2Fschema.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!","layer":null},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":19,"timestamp":40903666143,"id":1545,"parentId":1544,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx"},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":182,"timestamp":40903666110,"id":1544,"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%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!","layer":null},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":23,"timestamp":40903666356,"id":1547,"parentId":1546,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx"},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":206,"timestamp":40903666316,"id":1546,"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%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!","layer":null},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903666572,"id":1549,"parentId":1548,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx"},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":189,"timestamp":40903666537,"id":1548,"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%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!","layer":null},"startTime":1733737114031,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":18,"timestamp":40903666774,"id":1551,"parentId":1550,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx"},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":194,"timestamp":40903666741,"id":1550,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!","layer":null},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":18,"timestamp":40903666982,"id":1553,"parentId":1552,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx"},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":186,"timestamp":40903666949,"id":1552,"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%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!","layer":null},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903667184,"id":1555,"parentId":1554,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx"},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":222,"timestamp":40903667151,"id":1554,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!","layer":null},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903667423,"id":1557,"parentId":1556,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx"},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":208,"timestamp":40903667387,"id":1556,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!","layer":null},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":35,"timestamp":40903667641,"id":1559,"parentId":1558,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/add-table.jsx"},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":201,"timestamp":40903667609,"id":1558,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!","layer":null},"startTime":1733737114032,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":24,"timestamp":40903667860,"id":1561,"parentId":1560,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/index.jsx"},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":215,"timestamp":40903667825,"id":1560,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!","layer":null},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":13,"timestamp":40903668092,"id":1563,"parentId":1562,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx"},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":185,"timestamp":40903668054,"id":1562,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!","layer":null},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":17,"timestamp":40903668286,"id":1565,"parentId":1564,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-user.jsx"},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":226,"timestamp":40903668253,"id":1564,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":19,"timestamp":40903668539,"id":1567,"parentId":1566,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx"},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":217,"timestamp":40903668498,"id":1566,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!","layer":null},"startTime":1733737114033,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903668770,"id":1569,"parentId":1568,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/index.jsx"},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":235,"timestamp":40903668732,"id":1568,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!","layer":null},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903669023,"id":1571,"parentId":1570,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/index.jsx"},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":211,"timestamp":40903668984,"id":1570,"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%2Fdatabases%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!","layer":null},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903669265,"id":1573,"parentId":1572,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/add-database.jsx"},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":228,"timestamp":40903669215,"id":1572,"parentId":1476,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!","layer":null},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":17,"timestamp":40903669518,"id":1575,"parentId":1574,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/index.jsx"},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":226,"timestamp":40903669459,"id":1574,"parentId":1477,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D!","layer":null},"startTime":1733737114034,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":37,"timestamp":40903669738,"id":1577,"parentId":1576,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/settings.jsx"},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":249,"timestamp":40903669702,"id":1576,"parentId":1478,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!","layer":null},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903670006,"id":1579,"parentId":1578,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/schema.jsx"},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":262,"timestamp":40903669968,"id":1578,"parentId":1479,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!","layer":null},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903670287,"id":1581,"parentId":1580,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/index.jsx"},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":192,"timestamp":40903670249,"id":1580,"parentId":1480,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!","layer":null},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903670508,"id":1583,"parentId":1582,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/[...folder].jsx"},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":287,"timestamp":40903670474,"id":1582,"parentId":1481,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!","layer":null},"startTime":1733737114035,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":18,"timestamp":40903670817,"id":1585,"parentId":1584,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/[user].jsx"},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":208,"timestamp":40903670779,"id":1584,"parentId":1482,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!","layer":null},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903671040,"id":1587,"parentId":1586,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/add-user.jsx"},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":187,"timestamp":40903671006,"id":1586,"parentId":1483,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903671243,"id":1589,"parentId":1588,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/index.jsx"},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":241,"timestamp":40903671208,"id":1588,"parentId":1484,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!","layer":null},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903671500,"id":1591,"parentId":1590,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/index.jsx"},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":215,"timestamp":40903671465,"id":1590,"parentId":1485,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!","layer":null},"startTime":1733737114036,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903671734,"id":1593,"parentId":1592,"tags":{"absolutePagePath":"private-next-pages/admin/index.jsx"},"startTime":1733737114037,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":206,"timestamp":40903671696,"id":1592,"parentId":1486,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2Findex.jsx&page=%2Fadmin!","layer":null},"startTime":1733737114037,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903671957,"id":1595,"parentId":1594,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/index.jsx"},"startTime":1733737114037,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module","duration":497,"timestamp":40903671918,"id":1594,"parentId":1487,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!","layer":null},"startTime":1733737114037,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903672487,"id":1597,"parentId":1596,"tags":{"absolutePagePath":"private-next-pages/blog/index.jsx"},"startTime":1733737114037,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":244,"timestamp":40903672433,"id":1596,"parentId":1488,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fblog%2Findex.jsx&page=%2Fblog!","layer":null},"startTime":1733737114037,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903672733,"id":1599,"parentId":1598,"tags":{"absolutePagePath":"private-next-pages/contact.jsx"},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":197,"timestamp":40903672695,"id":1598,"parentId":1489,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcontact.jsx&page=%2Fcontact!","layer":null},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903672949,"id":1601,"parentId":1600,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/index.jsx"},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":203,"timestamp":40903672908,"id":1600,"parentId":1490,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&page=%2Fdocs%2F%5Bpage%5D!","layer":null},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":13,"timestamp":40903673162,"id":1603,"parentId":1602,"tags":{"absolutePagePath":"private-next-pages/docs/index.jsx"},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":191,"timestamp":40903673127,"id":1602,"parentId":1491,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2Findex.jsx&page=%2Fdocs!","layer":null},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903673371,"id":1605,"parentId":1604,"tags":{"absolutePagePath":"private-next-pages/create-account.jsx"},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":199,"timestamp":40903673333,"id":1604,"parentId":1492,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcreate-account.jsx&page=%2Fcreate-account!","layer":null},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":13,"timestamp":40903673590,"id":1607,"parentId":1606,"tags":{"absolutePagePath":"private-next-pages/index.jsx"},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":203,"timestamp":40903673548,"id":1606,"parentId":1493,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Findex.jsx&page=%2F!","layer":null},"startTime":1733737114038,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903673808,"id":1609,"parentId":1608,"tags":{"absolutePagePath":"private-next-pages/login.jsx"},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":235,"timestamp":40903673768,"id":1608,"parentId":1494,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogin.jsx&page=%2Flogin!","layer":null},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":17,"timestamp":40903674059,"id":1611,"parentId":1610,"tags":{"absolutePagePath":"private-next-pages/privacy.jsx"},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":228,"timestamp":40903674020,"id":1610,"parentId":1495,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fprivacy.jsx&page=%2Fprivacy!","layer":null},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903674304,"id":1613,"parentId":1612,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/[sub-page]/index.jsx"},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":223,"timestamp":40903674265,"id":1612,"parentId":1496,"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.jsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!","layer":null},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":17,"timestamp":40903674540,"id":1615,"parentId":1614,"tags":{"absolutePagePath":"private-next-pages/email-verification/index.jsx"},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":196,"timestamp":40903674503,"id":1614,"parentId":1497,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Femail-verification%2Findex.jsx&page=%2Femail-verification!","layer":null},"startTime":1733737114039,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":13,"timestamp":40903674754,"id":1617,"parentId":1616,"tags":{"absolutePagePath":"private-next-pages/redirect.jsx"},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":192,"timestamp":40903674714,"id":1616,"parentId":1498,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fredirect.jsx&page=%2Fredirect!","layer":null},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":13,"timestamp":40903674956,"id":1619,"parentId":1618,"tags":{"absolutePagePath":"private-next-pages/logout.jsx"},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":186,"timestamp":40903674922,"id":1618,"parentId":1499,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogout.jsx&page=%2Flogout!","layer":null},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903675159,"id":1621,"parentId":1620,"tags":{"absolutePagePath":"private-next-pages/su/console.jsx"},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":192,"timestamp":40903675123,"id":1620,"parentId":1500,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fconsole.jsx&page=%2Fsu%2Fconsole!","layer":null},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":17,"timestamp":40903675372,"id":1623,"parentId":1622,"tags":{"absolutePagePath":"private-next-pages/su/backups.jsx"},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":219,"timestamp":40903675332,"id":1622,"parentId":1501,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fbackups.jsx&page=%2Fsu%2Fbackups!","layer":null},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":18,"timestamp":40903675611,"id":1625,"parentId":1624,"tags":{"absolutePagePath":"private-next-pages/send-password-reset-link.jsx"},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":295,"timestamp":40903675568,"id":1624,"parentId":1502,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsend-password-reset-link.jsx&page=%2Fsend-password-reset-link!","layer":null},"startTime":1733737114040,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":24,"timestamp":40903675939,"id":1627,"parentId":1626,"tags":{"absolutePagePath":"private-next-pages/su/docs/create-page.jsx"},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":251,"timestamp":40903675882,"id":1626,"parentId":1503,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.jsx&page=%2Fsu%2Fdocs%2Fcreate-page!","layer":null},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903676192,"id":1629,"parentId":1628,"tags":{"absolutePagePath":"private-next-pages/su/docs/edit-page.jsx"},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":228,"timestamp":40903676151,"id":1628,"parentId":1504,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.jsx&page=%2Fsu%2Fdocs%2Fedit-page!","layer":null},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903676435,"id":1631,"parentId":1630,"tags":{"absolutePagePath":"private-next-pages/su/docs/index.jsx"},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":208,"timestamp":40903676395,"id":1630,"parentId":1505,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.jsx&page=%2Fsu%2Fdocs!","layer":null},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903676656,"id":1633,"parentId":1632,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/index.jsx"},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":207,"timestamp":40903676619,"id":1632,"parentId":1506,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&page=%2Fsu%2Fdocs%2Fpages!","layer":null},"startTime":1733737114041,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903676882,"id":1635,"parentId":1634,"tags":{"absolutePagePath":"private-next-pages/su/envar.jsx"},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":211,"timestamp":40903676842,"id":1634,"parentId":1507,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fenvar.jsx&page=%2Fsu%2Fenvar!","layer":null},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903677107,"id":1637,"parentId":1636,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/[id].jsx"},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":202,"timestamp":40903677069,"id":1636,"parentId":1508,"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.jsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!","layer":null},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903677326,"id":1639,"parentId":1638,"tags":{"absolutePagePath":"private-next-pages/su/error-logs.jsx"},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":225,"timestamp":40903677287,"id":1638,"parentId":1509,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.jsx&page=%2Fsu%2Ferror-logs!","layer":null},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903677566,"id":1641,"parentId":1640,"tags":{"absolutePagePath":"private-next-pages/su/index.jsx"},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":222,"timestamp":40903677528,"id":1640,"parentId":1510,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Findex.jsx&page=%2Fsu!","layer":null},"startTime":1733737114042,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903677808,"id":1643,"parentId":1642,"tags":{"absolutePagePath":"private-next-pages/su/load-balancing.jsx"},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":224,"timestamp":40903677767,"id":1642,"parentId":1511,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.jsx&page=%2Fsu%2Fload-balancing!","layer":null},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903678045,"id":1645,"parentId":1644,"tags":{"absolutePagePath":"private-next-pages/reset-password.jsx"},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":205,"timestamp":40903678008,"id":1644,"parentId":1512,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Freset-password.jsx&page=%2Freset-password!","layer":null},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":14,"timestamp":40903678268,"id":1647,"parentId":1646,"tags":{"absolutePagePath":"private-next-pages/su/servers.jsx"},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":215,"timestamp":40903678229,"id":1646,"parentId":1513,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fservers.jsx&page=%2Fsu%2Fservers!","layer":null},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":19,"timestamp":40903678500,"id":1649,"parentId":1648,"tags":{"absolutePagePath":"private-next-pages/su/login.jsx"},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":218,"timestamp":40903678461,"id":1648,"parentId":1514,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Flogin.jsx&page=%2Fsu%2Flogin!","layer":null},"startTime":1733737114043,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903678746,"id":1651,"parentId":1650,"tags":{"absolutePagePath":"private-next-pages/su/users/[single].jsx"},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":274,"timestamp":40903678704,"id":1650,"parentId":1515,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.jsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!","layer":null},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903679038,"id":1653,"parentId":1652,"tags":{"absolutePagePath":"private-next-pages/terms.jsx"},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":225,"timestamp":40903678996,"id":1652,"parentId":1516,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fterms.jsx&page=%2Fterms!","layer":null},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":16,"timestamp":40903679292,"id":1655,"parentId":1654,"tags":{"absolutePagePath":"private-next-pages/su/users/index.jsx"},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":237,"timestamp":40903679239,"id":1654,"parentId":1517,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.jsx&page=%2Fsu%2Fusers!","layer":null},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":66,"timestamp":40903679532,"id":1657,"parentId":1656,"tags":{"absolutePagePath":"private-next-pages/su/users/new.jsx"},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":265,"timestamp":40903679493,"id":1656,"parentId":1518,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.jsx&page=%2Fsu%2Fusers%2Fnew!","layer":null},"startTime":1733737114044,"traceId":"abc7307b6d44cd6e"},{"name":"next-client-pages-loader","duration":15,"timestamp":40903679819,"id":1659,"parentId":1658,"tags":{"absolutePagePath":"private-next-pages/unsubscribe.jsx"},"startTime":1733737114045,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":216,"timestamp":40903679774,"id":1658,"parentId":1519,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Funsubscribe.jsx&page=%2Funsubscribe!","layer":null},"startTime":1733737114045,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":24155,"timestamp":40903680013,"id":1660,"parentId":1448,"tags":{"name":"/app/node_modules/next/dist/client/next.js","layer":null},"startTime":1733737114045,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5169,"timestamp":40903701661,"id":1661,"parentId":1520,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1733737114066,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5426,"timestamp":40903711136,"id":1663,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1733737114076,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17373,"timestamp":40903704961,"id":1662,"parentId":1453,"tags":{"name":"/app/node_modules/next/dist/client/router.js","layer":null},"startTime":1733737114070,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12691,"timestamp":40903712896,"id":1664,"parentId":1660,"tags":{"name":"/app/node_modules/next/dist/client/webpack.js","layer":null},"startTime":1733737114078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20084,"timestamp":40903713018,"id":1665,"parentId":1660,"tags":{"name":"/app/node_modules/next/dist/client/index.js","layer":null},"startTime":1733737114078,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8800,"timestamp":40903727725,"id":1671,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1733737114093,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9041,"timestamp":40903727767,"id":1672,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1733737114093,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9940,"timestamp":40903727491,"id":1668,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1733737114092,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16259,"timestamp":40903722902,"id":1666,"parentId":1661,"tags":{"name":"/app/node_modules/react/jsx-runtime.js","layer":null},"startTime":1733737114088,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16354,"timestamp":40903723012,"id":1667,"parentId":1661,"tags":{"name":"/app/node_modules/react/index.js","layer":null},"startTime":1733737114088,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16271,"timestamp":40903727675,"id":1670,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","layer":null},"startTime":1733737114093,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16594,"timestamp":40903727593,"id":1669,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","layer":null},"startTime":1733737114092,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1050,"timestamp":40903749079,"id":1673,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1733737114114,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8904,"timestamp":40903749211,"id":1675,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1733737114114,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":10961,"timestamp":40903749144,"id":1674,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1733737114114,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5997,"timestamp":40903755293,"id":1694,"parentId":1526,"tags":{"name":"/app/pages/_app.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15792,"timestamp":40903755260,"id":1693,"parentId":1524,"tags":{"name":"/app/pages/500.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16465,"timestamp":40903755215,"id":1692,"parentId":1522,"tags":{"name":"/app/pages/404.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16984,"timestamp":40903755327,"id":1695,"parentId":1528,"tags":{"name":"/app/pages/about.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17518,"timestamp":40903755359,"id":1696,"parentId":1598,"tags":{"name":"/app/pages/contact.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20057,"timestamp":40903755444,"id":1699,"parentId":1608,"tags":{"name":"/app/pages/login.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20703,"timestamp":40903755417,"id":1698,"parentId":1606,"tags":{"name":"/app/pages/index.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21455,"timestamp":40903755387,"id":1697,"parentId":1604,"tags":{"name":"/app/pages/create-account.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21816,"timestamp":40903755473,"id":1700,"parentId":1610,"tags":{"name":"/app/pages/privacy.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22339,"timestamp":40903755501,"id":1701,"parentId":1616,"tags":{"name":"/app/pages/redirect.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":25314,"timestamp":40903754695,"id":1680,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26623,"timestamp":40903755559,"id":1703,"parentId":1624,"tags":{"name":"/app/pages/send-password-reset-link.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27920,"timestamp":40903755531,"id":1702,"parentId":1618,"tags":{"name":"/app/pages/logout.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28981,"timestamp":40903755588,"id":1704,"parentId":1644,"tags":{"name":"/app/pages/reset-password.jsx","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19539,"timestamp":40903765471,"id":1708,"parentId":1596,"tags":{"name":"/app/pages/blog/index.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20015,"timestamp":40903765429,"id":1707,"parentId":1592,"tags":{"name":"/app/pages/admin/index.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20610,"timestamp":40903765269,"id":1705,"parentId":1652,"tags":{"name":"/app/pages/terms.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21179,"timestamp":40903765381,"id":1706,"parentId":1658,"tags":{"name":"/app/pages/unsubscribe.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21302,"timestamp":40903765578,"id":1711,"parentId":1620,"tags":{"name":"/app/pages/su/console.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21575,"timestamp":40903765610,"id":1712,"parentId":1622,"tags":{"name":"/app/pages/su/backups.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":22372,"timestamp":40903765506,"id":1709,"parentId":1602,"tags":{"name":"/app/pages/docs/index.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22274,"timestamp":40903765890,"id":1718,"parentId":1638,"tags":{"name":"/app/pages/su/error-logs.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34170,"timestamp":40903765856,"id":1717,"parentId":1634,"tags":{"name":"/app/pages/su/envar.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34573,"timestamp":40903765934,"id":1719,"parentId":1640,"tags":{"name":"/app/pages/su/index.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35024,"timestamp":40903765968,"id":1720,"parentId":1642,"tags":{"name":"/app/pages/su/load-balancing.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36318,"timestamp":40903765545,"id":1710,"parentId":1614,"tags":{"name":"/app/pages/email-verification/index.jsx","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36171,"timestamp":40903765998,"id":1721,"parentId":1646,"tags":{"name":"/app/pages/su/servers.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":38723,"timestamp":40903766058,"id":1723,"parentId":1574,"tags":{"name":"/app/pages/admin/[user_id]/index.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39783,"timestamp":40903766029,"id":1722,"parentId":1648,"tags":{"name":"/app/pages/su/login.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":40225,"timestamp":40903766087,"id":1724,"parentId":1576,"tags":{"name":"/app/pages/admin/[user_id]/settings.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":40869,"timestamp":40903766180,"id":1725,"parentId":1578,"tags":{"name":"/app/pages/admin/[user_id]/schema.jsx","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58584,"timestamp":40903754617,"id":1679,"parentId":1665,"tags":{"name":"/app/node_modules/react-dom/client.js","layer":null},"startTime":1733737114119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58699,"timestamp":40903754760,"id":1681,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/build/deployment-id.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":66015,"timestamp":40903749335,"id":1677,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router-context.shared-runtime.js","layer":null},"startTime":1733737114114,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":66925,"timestamp":40903749281,"id":1676,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/client/with-router.js","layer":null},"startTime":1733737114114,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":63189,"timestamp":40903754835,"id":1683,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/runtime-config.external.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":63636,"timestamp":40903754878,"id":1684,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/mitt.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":63861,"timestamp":40903754935,"id":1685,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":64513,"timestamp":40903754975,"id":1686,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/querystring.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":64977,"timestamp":40903755053,"id":1688,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/has-base-path.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":66524,"timestamp":40903754794,"id":1682,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/head-manager.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":66690,"timestamp":40903755140,"id":1690,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/remove-base-path.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":68163,"timestamp":40903755013,"id":1687,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/page-loader.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58600,"timestamp":40903765641,"id":1713,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/polyfill-module.js","layer":null},"startTime":1733737114130,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":69769,"timestamp":40903755180,"id":1691,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":70622,"timestamp":40903755105,"id":1689,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/route-announcer.js","layer":null},"startTime":1733737114120,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":96523,"timestamp":40903749380,"id":1678,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/router.js","layer":null},"startTime":1733737114114,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":80746,"timestamp":40903765704,"id":1714,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":81087,"timestamp":40903765757,"id":1715,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":81909,"timestamp":40903765799,"id":1716,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/adapters.js","layer":null},"startTime":1733737114131,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7562,"timestamp":40903888449,"id":1729,"parentId":1630,"tags":{"name":"/app/pages/su/docs/index.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8102,"timestamp":40903888366,"id":1727,"parentId":1626,"tags":{"name":"/app/pages/su/docs/create-page.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2506,"timestamp":40903898541,"id":1760,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2627,"timestamp":40903898565,"id":1761,"parentId":1694,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16085,"timestamp":40903888412,"id":1728,"parentId":1628,"tags":{"name":"/app/pages/su/docs/edit-page.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17039,"timestamp":40903888234,"id":1726,"parentId":1600,"tags":{"name":"/app/pages/docs/[page]/index.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17164,"timestamp":40903888518,"id":1731,"parentId":1654,"tags":{"name":"/app/pages/su/users/index.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17568,"timestamp":40903888552,"id":1732,"parentId":1656,"tags":{"name":"/app/pages/su/users/new.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18182,"timestamp":40903888482,"id":1730,"parentId":1650,"tags":{"name":"/app/pages/su/users/[single].jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18560,"timestamp":40903888619,"id":1733,"parentId":1532,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18894,"timestamp":40903888692,"id":1735,"parentId":1570,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19455,"timestamp":40903888656,"id":1734,"parentId":1534,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.jsx","layer":null},"startTime":1733737114253,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19822,"timestamp":40903888725,"id":1736,"parentId":1572,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20140,"timestamp":40903888822,"id":1739,"parentId":1673,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20882,"timestamp":40903888760,"id":1737,"parentId":1580,"tags":{"name":"/app/pages/admin/[user_id]/media/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21513,"timestamp":40903888790,"id":1738,"parentId":1582,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21897,"timestamp":40903888885,"id":1741,"parentId":1594,"tags":{"name":"/app/pages/admin/[user_id]/users/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22347,"timestamp":40903888855,"id":1740,"parentId":1586,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22587,"timestamp":40903888945,"id":1743,"parentId":1632,"tags":{"name":"/app/pages/su/docs/pages/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23170,"timestamp":40903888913,"id":1742,"parentId":1612,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23409,"timestamp":40903888994,"id":1744,"parentId":1636,"tags":{"name":"/app/pages/su/docs/pages/[id].jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23843,"timestamp":40903889023,"id":1745,"parentId":1530,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24210,"timestamp":40903889081,"id":1747,"parentId":1538,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25719,"timestamp":40903889052,"id":1746,"parentId":1536,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26394,"timestamp":40903889111,"id":1748,"parentId":1540,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27088,"timestamp":40903889143,"id":1749,"parentId":1542,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29595,"timestamp":40903889172,"id":1750,"parentId":1588,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30106,"timestamp":40903889232,"id":1752,"parentId":1560,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30991,"timestamp":40903889203,"id":1751,"parentId":1558,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.jsx","layer":null},"startTime":1733737114254,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22429,"timestamp":40903898395,"id":1756,"parentId":1584,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24998,"timestamp":40903898185,"id":1753,"parentId":1564,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25501,"timestamp":40903898302,"id":1754,"parentId":1566,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25947,"timestamp":40903898351,"id":1755,"parentId":1568,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25817,"timestamp":40903898867,"id":1768,"parentId":1554,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26722,"timestamp":40903898433,"id":1757,"parentId":1590,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27197,"timestamp":40903898471,"id":1758,"parentId":1544,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36676,"timestamp":40903898507,"id":1759,"parentId":1548,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36742,"timestamp":40903898931,"id":1770,"parentId":1562,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":37542,"timestamp":40903898901,"id":1769,"parentId":1556,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":37943,"timestamp":40903898960,"id":1771,"parentId":1546,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":38443,"timestamp":40903898990,"id":1772,"parentId":1550,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":38955,"timestamp":40903899020,"id":1773,"parentId":1552,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58182,"timestamp":40903898843,"id":1767,"parentId":1667,"tags":{"name":"/app/node_modules/react/cjs/react.production.min.js","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58721,"timestamp":40903898814,"id":1766,"parentId":1666,"tags":{"name":"/app/node_modules/react/cjs/react-jsx-runtime.production.min.js","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58981,"timestamp":40903899050,"id":1774,"parentId":1661,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_default.js","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":66879,"timestamp":40903898774,"id":1765,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/tracing/report-to-socket.js","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":67607,"timestamp":40903898616,"id":1762,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/pages/_app.js","layer":null},"startTime":1733737114263,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":70184,"timestamp":40903898679,"id":1763,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/shared.js","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":70953,"timestamp":40903898728,"id":1764,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/tracing/tracer.js","layer":null},"startTime":1733737114264,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4922,"timestamp":40903992708,"id":1781,"parentId":1693,"tags":{"name":"/app/functions/frontend/clientAuthUser.js","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6051,"timestamp":40903992461,"id":1776,"parentId":1680,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1733737114357,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6676,"timestamp":40903992528,"id":1777,"parentId":1680,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1733737114357,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7776,"timestamp":40903992637,"id":1780,"parentId":1694,"tags":{"name":"/app/components/ErrorBoundary.jsx","layer":null},"startTime":1733737114357,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8175,"timestamp":40903992808,"id":1784,"parentId":1693,"tags":{"name":"/app/layouts/GeneralLayout.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8689,"timestamp":40903992840,"id":1785,"parentId":1693,"tags":{"name":"/app/components/general/PageHeadTags.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9422,"timestamp":40903992740,"id":1782,"parentId":1693,"tags":{"name":"/app/functions/frontend/fetchApi.js","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9799,"timestamp":40903992869,"id":1786,"parentId":1699,"tags":{"name":"/app/components/general/Logo.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":425,"timestamp":40904007141,"id":1800,"parentId":1678,"tags":{"layer":null},"startTime":1733737114372,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20778,"timestamp":40903992927,"id":1788,"parentId":1695,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21150,"timestamp":40903992899,"id":1787,"parentId":1695,"tags":{"name":"/app/components/pages/about/Hero.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21431,"timestamp":40903993008,"id":1790,"parentId":1695,"tags":{"name":"/app/components/pages/homepage/FooterCta.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21598,"timestamp":40903993077,"id":1792,"parentId":1696,"tags":{"name":"/app/components/pages/contact/ContactHero.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22388,"timestamp":40903993045,"id":1791,"parentId":1695,"tags":{"name":"/app/components/pages/homepage/MainFeaturesSection.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22981,"timestamp":40903993108,"id":1793,"parentId":1696,"tags":{"name":"/app/components/pages/contact/ContactForm.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23672,"timestamp":40903993135,"id":1794,"parentId":1699,"tags":{"name":"/app/components/pages/login/LoginForm.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24062,"timestamp":40903993192,"id":1796,"parentId":1698,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24744,"timestamp":40903993163,"id":1795,"parentId":1698,"tags":{"name":"/app/components/pages/homepage/Hero2.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27916,"timestamp":40903993284,"id":1799,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28449,"timestamp":40903993220,"id":1797,"parentId":1697,"tags":{"name":"/app/components/pages/create-account/Hero.jsx","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30178,"timestamp":40903993250,"id":1798,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16038,"timestamp":40904007749,"id":1804,"parentId":1699,"tags":{"name":"/app/components/general/LoadingScreen.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":16880,"timestamp":40904007583,"id":1801,"parentId":1700,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.jsx","layer":null},"startTime":1733737114372,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17116,"timestamp":40904007717,"id":1803,"parentId":1699,"tags":{"name":"/app/components/general/LoadingBlock.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17350,"timestamp":40904007780,"id":1805,"parentId":1702,"tags":{"name":"/app/functions/frontend/clearCaches.js","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17619,"timestamp":40904007841,"id":1807,"parentId":1703,"tags":{"name":"/app/components/general/FormSuccessBlock.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":18031,"timestamp":40904007813,"id":1806,"parentId":1716,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19142,"timestamp":40904007676,"id":1802,"parentId":1700,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19272,"timestamp":40904007870,"id":1808,"parentId":1703,"tags":{"name":"/app/components/general/InfoBlock.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19560,"timestamp":40904007897,"id":1809,"parentId":1708,"tags":{"name":"/app/components/pages/blog/BlogHero.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20349,"timestamp":40904007924,"id":1810,"parentId":1707,"tags":{"name":"/app/layouts/AdminLayout.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20924,"timestamp":40904007951,"id":1811,"parentId":1707,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.jsx","layer":null},"startTime":1733737114373,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":49913,"timestamp":40903992348,"id":1775,"parentId":1663,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js","layer":null},"startTime":1733737114357,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":50099,"timestamp":40903992566,"id":1778,"parentId":1680,"tags":{"name":"/app/node_modules/react-dom/index.js","layer":null},"startTime":1733737114357,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":50013,"timestamp":40903992955,"id":1789,"parentId":1694,"tags":{"name":"/app/node_modules/next/head.js","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":109419,"timestamp":40903992605,"id":1779,"parentId":1704,"tags":{"name":"/app/node_modules/lodash/lodash.js","layer":null},"startTime":1733737114357,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":110018,"timestamp":40903992769,"id":1783,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/client/portal/index.js","layer":null},"startTime":1733737114358,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":457997,"timestamp":40903650874,"id":1514,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Flogin.jsx&page=%2Fsu%2Flogin!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":2567,"timestamp":40904107230,"id":1813,"parentId":1705,"tags":{"name":"/app/components/pages/terms/TermsHero.jsx","layer":null},"startTime":1733737114472,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3280,"timestamp":40904107092,"id":1812,"parentId":1707,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.jsx","layer":null},"startTime":1733737114472,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":465738,"timestamp":40903648489,"id":1499,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogout.jsx&page=%2Flogout!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19740,"timestamp":40904107317,"id":1815,"parentId":1711,"tags":{"name":"/app/layouts/SuAdminLayout.jsx","layer":null},"startTime":1733737114472,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20722,"timestamp":40904107276,"id":1814,"parentId":1705,"tags":{"name":"/app/components/pages/terms/TermsBody.jsx","layer":null},"startTime":1733737114472,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21283,"timestamp":40904107356,"id":1816,"parentId":1712,"tags":{"name":"/app/components/su/SuErrorLogsContent.jsx","layer":null},"startTime":1733737114472,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14901,"timestamp":40904114475,"id":1817,"parentId":1712,"tags":{"name":"/app/components/su/SuBackupsContent.jsx","layer":null},"startTime":1733737114479,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15741,"timestamp":40904114570,"id":1818,"parentId":1711,"tags":{"name":"/app/components/su/SuConsoleContent.jsx","layer":null},"startTime":1733737114479,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5393,"timestamp":40904136261,"id":1852,"parentId":1709,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.jsx","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6148,"timestamp":40904136113,"id":1848,"parentId":1760,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6929,"timestamp":40904136233,"id":1851,"parentId":1709,"tags":{"name":"/app/components/pages/docs/DocsAside.jsx","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9401,"timestamp":40904136201,"id":1850,"parentId":1718,"tags":{"name":"/app/components/su/SuDashboardContent.jsx","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9687,"timestamp":40904136290,"id":1853,"parentId":1709,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.jsx","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":27226,"timestamp":40904124127,"id":1837,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/lib/is-api-route.js","layer":null},"startTime":1733737114489,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":44733,"timestamp":40904114609,"id":1819,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/client/add-base-path.js","layer":null},"startTime":1733737114479,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11291,"timestamp":40904148727,"id":1854,"parentId":1717,"tags":{"name":"/app/components/su/SuEnvContent.jsx","layer":null},"startTime":1733737114514,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":45713,"timestamp":40904114767,"id":1822,"parentId":1691,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":46078,"timestamp":40904114919,"id":1825,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":46531,"timestamp":40904114823,"id":1823,"parentId":1688,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47039,"timestamp":40904114880,"id":1824,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47134,"timestamp":40904115033,"id":1827,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47629,"timestamp":40904114977,"id":1826,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47922,"timestamp":40904115096,"id":1828,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":48897,"timestamp":40904114664,"id":1820,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/client/add-locale.js","layer":null},"startTime":1733737114479,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":40050,"timestamp":40904123919,"id":1834,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/client/detect-domain-locale.js","layer":null},"startTime":1733737114489,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":49607,"timestamp":40904115198,"id":1829,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-url.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":52568,"timestamp":40904114708,"id":1821,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/client/route-loader.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32891,"timestamp":40904135604,"id":1838,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/lib/constants.js","layer":null},"startTime":1733737114500,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":46365,"timestamp":40904124005,"id":1835,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/client/remove-locale.js","layer":null},"startTime":1733737114489,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47450,"timestamp":40904124060,"id":1836,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/client/resolve-href.js","layer":null},"startTime":1733737114489,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":57633,"timestamp":40904115291,"id":1830,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-regex.js","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25969,"timestamp":40904155851,"id":1858,"parentId":1721,"tags":{"name":"/app/components/su/servers/index.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26378,"timestamp":40904155814,"id":1857,"parentId":1720,"tags":{"name":"/app/components/su/load-balancing/index.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26948,"timestamp":40904155768,"id":1856,"parentId":1724,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27781,"timestamp":40904155642,"id":1855,"parentId":1724,"tags":{"name":"/app/components/admin/settings/SettingsContent.jsx","layer":null},"startTime":1733737114520,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27919,"timestamp":40904155887,"id":1859,"parentId":1725,"tags":{"name":"/app/components/general/VerificationBanner.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29077,"timestamp":40904155949,"id":1860,"parentId":1725,"tags":{"name":"/app/components/general/Breadcrumbs.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29524,"timestamp":40904156061,"id":1863,"parentId":1729,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30666,"timestamp":40904155984,"id":1861,"parentId":1725,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30861,"timestamp":40904156134,"id":1865,"parentId":1731,"tags":{"name":"/app/components/su/SuUsersContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31106,"timestamp":40904156200,"id":1867,"parentId":1726,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31605,"timestamp":40904156169,"id":1866,"parentId":1730,"tags":{"name":"/app/components/su/SuSingleUserContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31964,"timestamp":40904156233,"id":1868,"parentId":1736,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33433,"timestamp":40904156098,"id":1864,"parentId":1727,"tags":{"name":"/app/components/su/docs/CreatePageContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33541,"timestamp":40904156264,"id":1869,"parentId":1732,"tags":{"name":"/app/components/su/SuNewUserContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33943,"timestamp":40904156294,"id":1870,"parentId":1733,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34193,"timestamp":40904156321,"id":1871,"parentId":1733,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35117,"timestamp":40904156351,"id":1872,"parentId":1733,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.jsx","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":56004,"timestamp":40904135763,"id":1840,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-path.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":56318,"timestamp":40904135850,"id":1842,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":56877,"timestamp":40904135810,"id":1841,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":57927,"timestamp":40904135690,"id":1839,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/bloom-filter.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":57910,"timestamp":40904135993,"id":1845,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58245,"timestamp":40904135954,"id":1844,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-local-url.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58642,"timestamp":40904135889,"id":1843,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/compare-states.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":58917,"timestamp":40904136028,"id":1846,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/omit.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":59066,"timestamp":40904136065,"id":1847,"parentId":1716,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":59228,"timestamp":40904136162,"id":1849,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","layer":null},"startTime":1733737114501,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18957,"timestamp":40904176764,"id":1876,"parentId":1734,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.jsx","layer":null},"startTime":1733737114542,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19396,"timestamp":40904176688,"id":1874,"parentId":1734,"tags":{"name":"/app/components/admin/connect/ConnectContent.jsx","layer":null},"startTime":1733737114542,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20072,"timestamp":40904176586,"id":1873,"parentId":1735,"tags":{"name":"/app/components/admin/databases/DatabasesContent.jsx","layer":null},"startTime":1733737114541,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20392,"timestamp":40904176729,"id":1875,"parentId":1734,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.jsx","layer":null},"startTime":1733737114542,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20924,"timestamp":40904176795,"id":1877,"parentId":1737,"tags":{"name":"/app/components/general/UploadImageComponent.jsx","layer":null},"startTime":1733737114542,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":65166,"timestamp":40904156018,"id":1862,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/process.js","layer":null},"startTime":1733737114521,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":2389,"timestamp":40904228796,"id":1904,"parentId":1751,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1733737114594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9671,"timestamp":40904227917,"id":1878,"parentId":1737,"tags":{"name":"/app/components/general/UploadFileComponent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10515,"timestamp":40904228026,"id":1879,"parentId":1737,"tags":{"name":"/app/components/admin/media/MediaContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11800,"timestamp":40904228067,"id":1880,"parentId":1737,"tags":{"name":"/app/components/admin/media/NewMediaPopup.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12645,"timestamp":40904228130,"id":1882,"parentId":1737,"tags":{"name":"/app/components/admin/media/NewFolderPopup.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13726,"timestamp":40904228158,"id":1883,"parentId":1737,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15818,"timestamp":40904228100,"id":1881,"parentId":1737,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16534,"timestamp":40904228187,"id":1884,"parentId":1738,"tags":{"name":"/app/components/admin/media/MediaFolderContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17012,"timestamp":40904228306,"id":1888,"parentId":1737,"tags":{"name":"/app/components/general/UploadVideoComponent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17990,"timestamp":40904228247,"id":1886,"parentId":1741,"tags":{"name":"/app/components/admin/users/UsersContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18163,"timestamp":40904228361,"id":1890,"parentId":1744,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18539,"timestamp":40904228388,"id":1891,"parentId":1745,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20181,"timestamp":40904228219,"id":1885,"parentId":1741,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29286,"timestamp":40904228275,"id":1887,"parentId":1740,"tags":{"name":"/app/components/admin/users/AddNewUserContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29558,"timestamp":40904228439,"id":1893,"parentId":1746,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31230,"timestamp":40904228334,"id":1889,"parentId":1745,"tags":{"name":"/app/components/general/ExtraContentDatabase.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32175,"timestamp":40904228414,"id":1892,"parentId":1746,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32685,"timestamp":40904228467,"id":1894,"parentId":1747,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33038,"timestamp":40904228588,"id":1898,"parentId":1750,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34208,"timestamp":40904228493,"id":1895,"parentId":1748,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35210,"timestamp":40904228517,"id":1896,"parentId":1749,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":35843,"timestamp":40904228649,"id":1900,"parentId":1751,"tags":{"name":"/app/components/admin/databases/AddTableContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36162,"timestamp":40904228676,"id":1901,"parentId":1751,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.jsx","layer":null},"startTime":1733737114594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":37042,"timestamp":40904228621,"id":1899,"parentId":1752,"tags":{"name":"/app/components/admin/databases/TablesContent.jsx","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39282,"timestamp":40904228766,"id":1903,"parentId":1753,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.jsx","layer":null},"startTime":1733737114594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":41002,"timestamp":40904228732,"id":1902,"parentId":1756,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.jsx","layer":null},"startTime":1733737114594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":42572,"timestamp":40904228814,"id":1905,"parentId":1754,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.jsx","layer":null},"startTime":1733737114594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":61152,"timestamp":40904228545,"id":1897,"parentId":1763,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/report-global-error.js","layer":null},"startTime":1733737114593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1912,"timestamp":40904310209,"id":1907,"parentId":1798,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2151,"timestamp":40904310246,"id":1908,"parentId":1799,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6038,"timestamp":40904314987,"id":1927,"parentId":1786,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7252,"timestamp":40904315015,"id":1928,"parentId":1808,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8478,"timestamp":40904315039,"id":1929,"parentId":1790,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9732,"timestamp":40904315060,"id":1930,"parentId":1791,"tags":{"name":"__barrel_optimize__?names=Blocks!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":11044,"timestamp":40904315080,"id":1931,"parentId":1796,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17302,"timestamp":40904310104,"id":1906,"parentId":1755,"tags":{"name":"/app/components/admin/users/DbUsersContent.jsx","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17784,"timestamp":40904310281,"id":1909,"parentId":1757,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.jsx","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18621,"timestamp":40904310336,"id":1911,"parentId":1758,"tags":{"name":"/app/components/admin/databases/EditTableContent.jsx","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19943,"timestamp":40904310310,"id":1910,"parentId":1768,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.jsx","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20716,"timestamp":40904310363,"id":1912,"parentId":1759,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21669,"timestamp":40904310388,"id":1913,"parentId":1759,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.jsx","layer":null},"startTime":1733737114675,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24561,"timestamp":40904314619,"id":1916,"parentId":1771,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.jsx","layer":null},"startTime":1733737114679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25542,"timestamp":40904314696,"id":1918,"parentId":1769,"tags":{"name":"/app/components/admin/databases/SingleTableContent.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28281,"timestamp":40904314653,"id":1917,"parentId":1770,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.jsx","layer":null},"startTime":1733737114679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28528,"timestamp":40904314722,"id":1919,"parentId":1769,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":29851,"timestamp":40904314457,"id":1914,"parentId":1806,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1733737114679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":29679,"timestamp":40904314910,"id":1925,"parentId":1848,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30430,"timestamp":40904314752,"id":1920,"parentId":1772,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30414,"timestamp":40904314945,"id":1926,"parentId":1848,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30568,"timestamp":40904315160,"id":1932,"parentId":1784,"tags":{"name":"/app/functions/frontend/updateNavLinks.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30672,"timestamp":40904315233,"id":1935,"parentId":1784,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32217,"timestamp":40904314777,"id":1921,"parentId":1773,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32152,"timestamp":40904315210,"id":1934,"parentId":1784,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32138,"timestamp":40904315449,"id":1938,"parentId":1793,"tags":{"name":"/app/components/general/FormAlertBlock.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32820,"timestamp":40904315256,"id":1936,"parentId":1794,"tags":{"name":"/app/functions/frontend/userLogin.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33751,"timestamp":40904315186,"id":1933,"parentId":1784,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33690,"timestamp":40904315491,"id":1939,"parentId":1795,"tags":{"name":"/app/components/general/FadedImage.jsx","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":109992,"timestamp":40904314869,"id":1924,"parentId":1778,"tags":{"name":"/app/node_modules/react-dom/cjs/react-dom.production.min.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":112746,"timestamp":40904314565,"id":1915,"parentId":1763,"tags":{"name":"/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","layer":null},"startTime":1733737114679,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":113028,"timestamp":40904314833,"id":1923,"parentId":1763,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":113638,"timestamp":40904314803,"id":1922,"parentId":1765,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/pages/websocket.js","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2625,"timestamp":40904434282,"id":1954,"parentId":1817,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5180,"timestamp":40904433850,"id":1942,"parentId":1788,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6466,"timestamp":40904433885,"id":1943,"parentId":1788,"tags":{"name":"/app/components/general/ContainedSection.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7353,"timestamp":40904433707,"id":1940,"parentId":1794,"tags":{"name":"/app/components/pages/login/SocialLogin.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-process","duration":8544,"timestamp":40904444892,"id":1977,"parentId":1976,"tags":{},"startTime":1733737114810,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-loader","duration":9178,"timestamp":40904444289,"id":1976,"parentId":1969,"tags":{},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"css-loader","duration":2579,"timestamp":40904453495,"id":1978,"parentId":1969,"tags":{"astUsed":"true"},"startTime":1733737114818,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":13156,"timestamp":40904443702,"id":1969,"parentId":1833,"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":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":25903,"timestamp":40904433997,"id":1946,"parentId":1821,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26322,"timestamp":40904433919,"id":1944,"parentId":1796,"tags":{"name":"/app/components/general/IconText.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26721,"timestamp":40904433950,"id":1945,"parentId":1795,"tags":{"name":"/app/components/general/CodeBlock.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28016,"timestamp":40904433808,"id":1941,"parentId":1797,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28290,"timestamp":40904434054,"id":1947,"parentId":1810,"tags":{"name":"/app/components/general/DiskUsageComponent.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28469,"timestamp":40904434144,"id":1950,"parentId":1811,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29299,"timestamp":40904434084,"id":1948,"parentId":1810,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":29888,"timestamp":40904434114,"id":1949,"parentId":1810,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30344,"timestamp":40904434175,"id":1951,"parentId":1811,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31228,"timestamp":40904434204,"id":1952,"parentId":1811,"tags":{"name":"/app/components/admin/dashboard/Metrics.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31578,"timestamp":40904434386,"id":1956,"parentId":1818,"tags":{"name":"/app/components/su/xterm.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32403,"timestamp":40904434315,"id":1955,"parentId":1812,"tags":{"name":"/app/components/general/GeneralPopup.jsx","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":23582,"timestamp":40904443479,"id":1964,"parentId":1853,"tags":{"name":"/app/components/cards/LinkCard.jsx","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24113,"timestamp":40904443445,"id":1963,"parentId":1850,"tags":{"name":"/app/components/su/components/UserCard.jsx","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":24815,"timestamp":40904443306,"id":1961,"parentId":1815,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.jsx","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25322,"timestamp":40904443406,"id":1962,"parentId":1815,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.jsx","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25146,"timestamp":40904443806,"id":1971,"parentId":1866,"tags":{"name":"/app/components/general/BackButton.jsx","layer":null},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":25534,"timestamp":40904443890,"id":1974,"parentId":1866,"tags":{"name":"/app/components/su/components/UserData.jsx","layer":null},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26002,"timestamp":40904443863,"id":1973,"parentId":1866,"tags":{"name":"/app/components/su/components/UserBackups.jsx","layer":null},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":26611,"timestamp":40904443758,"id":1970,"parentId":1854,"tags":{"name":"/app/components/su/SuEnvCard.jsx","layer":null},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27067,"timestamp":40904443836,"id":1972,"parentId":1861,"tags":{"name":"/app/components/form/FormSelect.jsx","layer":null},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":28583,"timestamp":40904443919,"id":1975,"parentId":1856,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.jsx","layer":null},"startTime":1733737114809,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":61498,"timestamp":40904434705,"id":1960,"parentId":1830,"tags":{"name":"/app/node_modules/next/dist/shared/lib/escape-regexp.js","layer":null},"startTime":1733737114800,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":61866,"timestamp":40904434623,"id":1959,"parentId":1819,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":54355,"timestamp":40904443510,"id":1965,"parentId":1818,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/index.js","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":64145,"timestamp":40904434445,"id":1957,"parentId":1819,"tags":{"name":"/app/node_modules/next/dist/client/normalize-trailing-slash.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":64672,"timestamp":40904434518,"id":1958,"parentId":1821,"tags":{"name":"/app/node_modules/next/dist/client/trusted-types.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":65368,"timestamp":40904434234,"id":1953,"parentId":1818,"tags":{"name":"/app/node_modules/ansi-regex/index.js","layer":null},"startTime":1733737114799,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7862,"timestamp":40904492452,"id":1980,"parentId":1863,"tags":{"name":"/app/components/su/components/PageCard.jsx","layer":null},"startTime":1733737114857,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8597,"timestamp":40904492343,"id":1979,"parentId":1855,"tags":{"name":"/app/components/admin/databases/UserImage.jsx","layer":null},"startTime":1733737114857,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":9116,"timestamp":40904492492,"id":1981,"parentId":1863,"tags":{"name":"/app/components/general/ui/ButtonGroup.jsx","layer":null},"startTime":1733737114857,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6685,"timestamp":40904508461,"id":1985,"parentId":1889,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7340,"timestamp":40904508515,"id":1986,"parentId":1892,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7351,"timestamp":40904509157,"id":1998,"parentId":1883,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7872,"timestamp":40904509197,"id":1999,"parentId":1881,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8388,"timestamp":40904509238,"id":2000,"parentId":1884,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-process","duration":78171,"timestamp":40904518635,"id":2009,"parentId":2007,"tags":{},"startTime":1733737114883,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-process","duration":64650,"timestamp":40904532171,"id":2010,"parentId":2008,"tags":{},"startTime":1733737114897,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-loader","duration":85280,"timestamp":40904511569,"id":2007,"parentId":2001,"tags":{},"startTime":1733737114876,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-loader","duration":85251,"timestamp":40904511603,"id":2008,"parentId":2002,"tags":{},"startTime":1733737114876,"traceId":"abc7307b6d44cd6e"},{"name":"css-loader","duration":12151,"timestamp":40904596886,"id":2011,"parentId":2001,"tags":{"astUsed":"true"},"startTime":1733737114962,"traceId":"abc7307b6d44cd6e"},{"name":"css-loader","duration":12134,"timestamp":40904596915,"id":2012,"parentId":2002,"tags":{"astUsed":"true"},"startTime":1733737114962,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":101081,"timestamp":40904509296,"id":2001,"parentId":1831,"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":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":101854,"timestamp":40904509360,"id":2002,"parentId":1832,"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":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":169666,"timestamp":40904443654,"id":1968,"parentId":1841,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":170061,"timestamp":40904443548,"id":1966,"parentId":1842,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":170550,"timestamp":40904443594,"id":1967,"parentId":1842,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-locale.js","layer":null},"startTime":1733737114808,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":106011,"timestamp":40904508398,"id":1984,"parentId":1861,"tags":{"name":"/app/package-shared/utils/ejson.js","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":106255,"timestamp":40904508563,"id":1987,"parentId":1861,"tags":{"name":"/app/components/general/AceEditor.jsx","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":106972,"timestamp":40904508335,"id":1983,"parentId":1858,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.jsx","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":106940,"timestamp":40904508628,"id":1988,"parentId":1872,"tags":{"name":"/app/functions/frontend/checkUniqueField.js","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":108053,"timestamp":40904508186,"id":1982,"parentId":1861,"tags":{"name":"/app/components/admin/databases/UserSchemaVisualizer.jsx","layer":null},"startTime":1733737114873,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":107786,"timestamp":40904508800,"id":1991,"parentId":1870,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":108469,"timestamp":40904508744,"id":1990,"parentId":1868,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":108754,"timestamp":40904508854,"id":1992,"parentId":1864,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":111976,"timestamp":40904508909,"id":1993,"parentId":1877,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":112539,"timestamp":40904509010,"id":1995,"parentId":1874,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":112930,"timestamp":40904509060,"id":1996,"parentId":1874,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":114969,"timestamp":40904508686,"id":1989,"parentId":1864,"tags":{"name":"/app/components/form/FormInput.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":114971,"timestamp":40904509107,"id":1997,"parentId":1873,"tags":{"name":"/app/components/admin/databases/DatabasesList.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":115872,"timestamp":40904508963,"id":1994,"parentId":1876,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.jsx","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":115587,"timestamp":40904509429,"id":2004,"parentId":1880,"tags":{"name":"/app/functions/frontend/updateDiskUsage.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":115767,"timestamp":40904509462,"id":2005,"parentId":1927,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":115912,"timestamp":40904509491,"id":2006,"parentId":1928,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":116336,"timestamp":40904509396,"id":2003,"parentId":1878,"tags":{"name":"/app/functions/frontend/inputFileToBase64.js","layer":null},"startTime":1733737114874,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":982878,"timestamp":40903648337,"id":1453,"parentId":1447,"tags":{"request":"/app/node_modules/next/dist/client/router.js"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6774,"timestamp":40904631164,"id":2014,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/blocks.js","layer":null},"startTime":1733737114996,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7065,"timestamp":40904631068,"id":2013,"parentId":1929,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1733737114996,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2673,"timestamp":40904641253,"id":2017,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3011,"timestamp":40904641212,"id":2016,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3377,"timestamp":40904641095,"id":2015,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3436,"timestamp":40904641282,"id":2018,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":1373,"timestamp":40904647771,"id":2032,"parentId":1885,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-json","duration":2609,"timestamp":40904648493,"id":2059,"parentId":1916,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4340,"timestamp":40904648146,"id":2046,"parentId":1947,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4774,"timestamp":40904648177,"id":2047,"parentId":1955,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5223,"timestamp":40904648198,"id":2048,"parentId":1952,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5557,"timestamp":40904648341,"id":2054,"parentId":1971,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5660,"timestamp":40904648673,"id":2066,"parentId":1919,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6067,"timestamp":40904648695,"id":2067,"parentId":1933,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115014,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15568,"timestamp":40904641335,"id":2020,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16063,"timestamp":40904641309,"id":2019,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17112,"timestamp":40904641362,"id":2021,"parentId":1879,"tags":{"name":"/app/components/admin/media/MediaList.jsx","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18233,"timestamp":40904641389,"id":2022,"parentId":1880,"tags":{"name":"/app/components/admin/media/NewMediaCard.jsx","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18923,"timestamp":40904641416,"id":2023,"parentId":1880,"tags":{"name":"/app/components/admin/media/NewFileCard.jsx","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20199,"timestamp":40904641441,"id":2024,"parentId":1881,"tags":{"name":"/app/functions/frontend/downloadFile.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20575,"timestamp":40904641465,"id":2025,"parentId":1881,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.js","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":21235,"timestamp":40904641491,"id":2026,"parentId":1886,"tags":{"name":"/app/components/admin/users/UsersList.jsx","layer":null},"startTime":1733737115006,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15582,"timestamp":40904647680,"id":2029,"parentId":1891,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16127,"timestamp":40904647554,"id":2027,"parentId":1886,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.jsx","layer":null},"startTime":1733737115012,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16401,"timestamp":40904647709,"id":2030,"parentId":1891,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17003,"timestamp":40904647644,"id":2028,"parentId":1881,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.jsx","layer":null},"startTime":1733737115012,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17152,"timestamp":40904647801,"id":2033,"parentId":1889,"tags":{"name":"/app/components/general/CopySlug.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1558,"timestamp":40904672763,"id":2070,"parentId":1997,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30266,"timestamp":40904647893,"id":2036,"parentId":1892,"tags":{"name":"/app/components/general/DatabaseSlugCopy.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":30850,"timestamp":40904647840,"id":2034,"parentId":1885,"tags":{"name":"/app/components/form/FormCheckboxes.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31342,"timestamp":40904647868,"id":2035,"parentId":1889,"tags":{"name":"/app/functions/frontend/downloadApiStream.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":31695,"timestamp":40904647945,"id":2038,"parentId":1898,"tags":{"name":"/app/components/admin/users/DatabaseUsers.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32018,"timestamp":40904647971,"id":2039,"parentId":1895,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":32828,"timestamp":40904647921,"id":2037,"parentId":1892,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33122,"timestamp":40904648071,"id":2043,"parentId":1900,"tags":{"name":"/app/components/admin/databases/AddTableForm.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":33762,"timestamp":40904647997,"id":2040,"parentId":1896,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34327,"timestamp":40904648046,"id":2042,"parentId":1896,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaVisualizer.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":34514,"timestamp":40904648118,"id":2045,"parentId":1954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36105,"timestamp":40904648021,"id":2041,"parentId":1894,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36865,"timestamp":40904648217,"id":2049,"parentId":1899,"tags":{"name":"/app/components/admin/databases/TablesList.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":37336,"timestamp":40904648269,"id":2051,"parentId":1905,"tags":{"name":"/app/components/form/FormRadios.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39370,"timestamp":40904648093,"id":2044,"parentId":1900,"tags":{"name":"/app/components/admin/databases/TableFields.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":39654,"timestamp":40904648316,"id":2053,"parentId":1902,"tags":{"name":"/app/components/admin/users/UserImage.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":40534,"timestamp":40904648291,"id":2052,"parentId":1902,"tags":{"name":"/app/components/admin/users/UserListCard.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":42297,"timestamp":40904648244,"id":2050,"parentId":1903,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":43150,"timestamp":40904648440,"id":2058,"parentId":1906,"tags":{"name":"/app/components/admin/users/DbUsersList.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":43720,"timestamp":40904648519,"id":2060,"parentId":1911,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":44076,"timestamp":40904648625,"id":2064,"parentId":1916,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":45396,"timestamp":40904648576,"id":2062,"parentId":1916,"tags":{"name":"/app/components/admin/databases/TableEntriesList.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":49792,"timestamp":40904648549,"id":2061,"parentId":1911,"tags":{"name":"/app/components/admin/databases/EditTableForm.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":50435,"timestamp":40904648648,"id":2065,"parentId":1916,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":53399,"timestamp":40904648600,"id":2063,"parentId":1916,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.jsx","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":29404,"timestamp":40904672905,"id":2072,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":29694,"timestamp":40904672941,"id":2073,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30033,"timestamp":40904672972,"id":2074,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30768,"timestamp":40904672844,"id":2071,"parentId":2005,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":30839,"timestamp":40904673057,"id":2077,"parentId":1998,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31186,"timestamp":40904673002,"id":2075,"parentId":1985,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31458,"timestamp":40904673030,"id":2076,"parentId":1998,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31729,"timestamp":40904673086,"id":2078,"parentId":1998,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32068,"timestamp":40904673113,"id":2079,"parentId":1999,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1733737115038,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2632,"timestamp":40904725138,"id":2082,"parentId":1995,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2787,"timestamp":40904725546,"id":2093,"parentId":1948,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,Plug2,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3223,"timestamp":40904725583,"id":2094,"parentId":1980,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12105,"timestamp":40904724972,"id":2080,"parentId":1999,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12188,"timestamp":40904725092,"id":2081,"parentId":2000,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12217,"timestamp":40904725433,"id":2089,"parentId":1921,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13416,"timestamp":40904725297,"id":2086,"parentId":1918,"tags":{"name":"/app/components/admin/databases/TableIndexes.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13870,"timestamp":40904725405,"id":2088,"parentId":1921,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14986,"timestamp":40904725353,"id":2087,"parentId":1920,"tags":{"name":"/app/components/admin/databases/TableEntryForm.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15494,"timestamp":40904725462,"id":2090,"parentId":1933,"tags":{"name":"/app/components/general/ThemeSelector.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16218,"timestamp":40904725514,"id":2092,"parentId":1933,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16808,"timestamp":40904725628,"id":2096,"parentId":1940,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18067,"timestamp":40904725671,"id":2097,"parentId":1940,"tags":{"name":"/app/components/pages/login/GithubLogin.jsx","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19207,"timestamp":40904725699,"id":2098,"parentId":1940,"tags":{"name":"/app/components/pages/login/FacebookSignInButton.jsx","layer":null},"startTime":1733737115091,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1955,"timestamp":40904753703,"id":2103,"parentId":1961,"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":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2391,"timestamp":40904753734,"id":2104,"parentId":2021,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":113300,"timestamp":40904647735,"id":2031,"parentId":1854,"tags":{"name":"/app/node_modules/next/dist/compiled/os-browserify/browser.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":112776,"timestamp":40904648714,"id":2068,"parentId":1922,"tags":{"name":"/app/node_modules/next/dist/server/dev/hot-reloader-types.js","layer":null},"startTime":1733737115014,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":243255,"timestamp":40904648361,"id":2055,"parentId":1956,"tags":{"name":"/app/node_modules/xterm/lib/xterm.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":243989,"timestamp":40904648383,"id":2056,"parentId":1956,"tags":{"name":"/app/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":139842,"timestamp":40904753634,"id":2101,"parentId":1948,"tags":{"name":"/app/functions/isLocalSuperUser.js","layer":null},"startTime":1733737115118,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":140271,"timestamp":40904753667,"id":2102,"parentId":1952,"tags":{"name":"/app/components/general/MetricCard.jsx","layer":null},"startTime":1733737115118,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":140962,"timestamp":40904753478,"id":2099,"parentId":1941,"tags":{"name":"/app/functions/frontend/submitNewUserForm.js","layer":null},"startTime":1733737115118,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":140986,"timestamp":40904753760,"id":2105,"parentId":2046,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":141174,"timestamp":40904753789,"id":2106,"parentId":2046,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":141330,"timestamp":40904753817,"id":2107,"parentId":2046,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":141479,"timestamp":40904753847,"id":2108,"parentId":2047,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-js","duration":141933,"timestamp":40904753874,"id":2109,"parentId":2048,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":143135,"timestamp":40904753592,"id":2100,"parentId":1951,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.jsx","layer":null},"startTime":1733737115118,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":143013,"timestamp":40904753904,"id":2110,"parentId":2048,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":143151,"timestamp":40904753933,"id":2111,"parentId":2066,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1733737115119,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2509,"timestamp":40904902192,"id":2112,"parentId":1972,"tags":{"name":"__barrel_optimize__?names=ChevronDown,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2846,"timestamp":40904902438,"id":2117,"parentId":2049,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3414,"timestamp":40904902467,"id":2118,"parentId":2062,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3825,"timestamp":40904902639,"id":2123,"parentId":1983,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-process","duration":2294,"timestamp":40904906832,"id":2125,"parentId":2124,"tags":{},"startTime":1733737115272,"traceId":"abc7307b6d44cd6e"},{"name":"postcss-loader","duration":5345,"timestamp":40904903803,"id":2124,"parentId":2122,"tags":{},"startTime":1733737115269,"traceId":"abc7307b6d44cd6e"},{"name":"css-loader","duration":6219,"timestamp":40904909171,"id":2126,"parentId":2122,"tags":{"astUsed":"true"},"startTime":1733737115274,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":13333,"timestamp":40904902588,"id":2122,"parentId":1937,"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":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":270792,"timestamp":40904648404,"id":2057,"parentId":1922,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","layer":null},"startTime":1733737115013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":247109,"timestamp":40904672673,"id":2069,"parentId":1969,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js","layer":null},"startTime":1733737115037,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18446,"timestamp":40904902276,"id":2113,"parentId":1974,"tags":{"name":"/app/components/su/components/UserFiles.jsx","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18838,"timestamp":40904902370,"id":2115,"parentId":1975,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.jsx","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":19245,"timestamp":40904902405,"id":2116,"parentId":1975,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.jsx","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19329,"timestamp":40904902491,"id":2119,"parentId":2071,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19546,"timestamp":40904902548,"id":2121,"parentId":2071,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19771,"timestamp":40904902519,"id":2120,"parentId":2070,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20952,"timestamp":40904902334,"id":2114,"parentId":1974,"tags":{"name":"/app/components/su/components/UserDbShell.jsx","layer":null},"startTime":1733737115267,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3696,"timestamp":40904926094,"id":2127,"parentId":2089,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":812450,"timestamp":40904123801,"id":1833,"parentId":1711,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1733737114489,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":821796,"timestamp":40904115386,"id":1831,"parentId":1694,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1733737114480,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":814670,"timestamp":40904123581,"id":1832,"parentId":1694,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1733737114488,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-css","duration":629862,"timestamp":40904315297,"id":1937,"parentId":1795,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1733737114680,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":222253,"timestamp":40904725215,"id":2084,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/manager.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":222790,"timestamp":40904725604,"id":2095,"parentId":1862,"tags":{"name":"/app/node_modules/next/dist/compiled/process/browser.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":223830,"timestamp":40904725173,"id":2083,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/url.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-mjs","duration":229771,"timestamp":40904725492,"id":2091,"parentId":1987,"tags":{"name":"/app/node_modules/tailwind-merge/dist/bundle-mjs.mjs","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":232763,"timestamp":40904725249,"id":2085,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/socket.js","layer":null},"startTime":1733737115090,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32150,"timestamp":40904926180,"id":2128,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32254,"timestamp":40904926273,"id":2130,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plug-2.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32406,"timestamp":40904926308,"id":2131,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32654,"timestamp":40904926237,"id":2129,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32691,"timestamp":40904926371,"id":2133,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":32979,"timestamp":40904926339,"id":2132,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33099,"timestamp":40904926401,"id":2134,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33370,"timestamp":40904926498,"id":2137,"parentId":1989,"tags":{"name":"/app/functions/frontend/numberFormat.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":33777,"timestamp":40904926533,"id":2138,"parentId":1989,"tags":{"name":"/app/functions/frontend/numberFormatFloat.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":34300,"timestamp":40904926565,"id":2139,"parentId":1987,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":34894,"timestamp":40904926595,"id":2140,"parentId":1991,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.jsx","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35342,"timestamp":40904926658,"id":2142,"parentId":1990,"tags":{"name":"/app/components/admin/databases/DatabaseImage.jsx","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":35956,"timestamp":40904926688,"id":2143,"parentId":1996,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.jsx","layer":null},"startTime":1733737115292,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":36901,"timestamp":40904926625,"id":2141,"parentId":1990,"tags":{"name":"/app/components/admin/databases/DatabaseForm.jsx","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":37477,"timestamp":40904926747,"id":2145,"parentId":1992,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.jsx","layer":null},"startTime":1733737115292,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":38929,"timestamp":40904926719,"id":2144,"parentId":1994,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.jsx","layer":null},"startTime":1733737115292,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1325944,"timestamp":40903648307,"id":1449,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1645,"timestamp":40904973834,"id":2146,"parentId":2100,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4516,"timestamp":40904973929,"id":2147,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4592,"timestamp":40904974055,"id":2150,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4881,"timestamp":40904973984,"id":2148,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5011,"timestamp":40904974023,"id":2149,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5103,"timestamp":40904974113,"id":2152,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5224,"timestamp":40904974175,"id":2154,"parentId":2104,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5559,"timestamp":40904974145,"id":2153,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5793,"timestamp":40904974086,"id":2151,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332633,"timestamp":40903648496,"id":1501,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fbackups.jsx&page=%2Fsu%2Fbackups!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332624,"timestamp":40903648518,"id":1509,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.jsx&page=%2Fsu%2Ferror-logs!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332635,"timestamp":40903648513,"id":1507,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fenvar.jsx&page=%2Fsu%2Fenvar!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332632,"timestamp":40903648520,"id":1510,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Findex.jsx&page=%2Fsu!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332634,"timestamp":40903648523,"id":1511,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.jsx&page=%2Fsu%2Fload-balancing!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1330339,"timestamp":40903650829,"id":1513,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fservers.jsx&page=%2Fsu%2Fservers!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332667,"timestamp":40903648507,"id":1505,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.jsx&page=%2Fsu%2Fdocs!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1330206,"timestamp":40903650975,"id":1517,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.jsx&page=%2Fsu%2Fusers!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1330206,"timestamp":40903650980,"id":1518,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.jsx&page=%2Fsu%2Fusers%2Fnew!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332680,"timestamp":40903648510,"id":1506,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&page=%2Fsu%2Fdocs%2Fpages!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1332679,"timestamp":40903648515,"id":1508,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.jsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1333531,"timestamp":40903648476,"id":1494,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogin.jsx&page=%2Flogin!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":133,"timestamp":40904985074,"id":2160,"parentId":1833,"tags":{},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":23,"timestamp":40904985224,"id":2161,"parentId":1831,"tags":{},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":14,"timestamp":40904985254,"id":2162,"parentId":1832,"tags":{},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module","duration":8,"timestamp":40904985274,"id":2163,"parentId":1937,"tags":{},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1223,"timestamp":40904985295,"id":2164,"parentId":2143,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Delete,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1560,"timestamp":40904985430,"id":2166,"parentId":2145,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6634,"timestamp":40904981065,"id":2159,"parentId":2117,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1733737115346,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7000,"timestamp":40904980891,"id":2156,"parentId":2117,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1733737115346,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7045,"timestamp":40904981031,"id":2158,"parentId":2117,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1733737115346,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7249,"timestamp":40904980993,"id":2157,"parentId":2117,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1733737115346,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":63475,"timestamp":40904926470,"id":2136,"parentId":2089,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/Popover.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":73580,"timestamp":40904926433,"id":2135,"parentId":2044,"tags":{"name":"/app/node_modules/gsap/Flip.js","layer":null},"startTime":1733737115291,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1352254,"timestamp":40903648322,"id":1452,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F_app.js&page=%2F_app!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":20131,"timestamp":40904985376,"id":2165,"parentId":2127,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1733737115350,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":31918,"timestamp":40904974203,"id":2155,"parentId":2044,"tags":{"name":"/app/node_modules/gsap/index.js","layer":null},"startTime":1733737115339,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5187,"timestamp":40905001790,"id":2172,"parentId":2044,"tags":{"name":"/app/functions/frontend/addNewTempField.js","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5642,"timestamp":40905001727,"id":2170,"parentId":2022,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.jsx","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6466,"timestamp":40905001663,"id":2169,"parentId":2021,"tags":{"name":"/app/components/admin/media/MediaFolderCard.jsx","layer":null},"startTime":1733737115366,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6711,"timestamp":40905001835,"id":2173,"parentId":2063,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.js","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7858,"timestamp":40905001761,"id":2171,"parentId":2021,"tags":{"name":"/app/components/admin/media/card/MediaListCard.jsx","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":8107,"timestamp":40905001869,"id":2174,"parentId":2044,"tags":{"name":"/app/components/general/ExpandBlock.jsx","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16517,"timestamp":40905001922,"id":2175,"parentId":2044,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.js","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17406,"timestamp":40905001960,"id":2176,"parentId":2043,"tags":{"name":"/app/components/admin/databases/NewTableForm.jsx","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18984,"timestamp":40905001994,"id":2177,"parentId":2043,"tags":{"name":"/app/components/admin/databases/CloneTableForm.jsx","layer":null},"startTime":1733737115367,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6053,"timestamp":40905026819,"id":2182,"parentId":2166,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6402,"timestamp":40905026734,"id":2180,"parentId":2164,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/delete.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6742,"timestamp":40905026622,"id":2179,"parentId":2164,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1733737115391,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6839,"timestamp":40905026784,"id":2181,"parentId":2166,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1221,"timestamp":40905034913,"id":2200,"parentId":2170,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115400,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1585,"timestamp":40905035037,"id":2201,"parentId":2169,"tags":{"name":"__barrel_optimize__?names=Copy,Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115400,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":10500,"timestamp":40905026965,"id":2186,"parentId":2049,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":11017,"timestamp":40905026935,"id":2185,"parentId":2049,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-jsx","duration":12014,"timestamp":40905026894,"id":2184,"parentId":2049,"tags":{"name":"/app/components/admin/databases/TableListCard.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12797,"timestamp":40905026993,"id":2187,"parentId":2044,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13631,"timestamp":40905027027,"id":2188,"parentId":2044,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14341,"timestamp":40905027111,"id":2191,"parentId":2063,"tags":{"name":"/app/components/admin/databases/TableEntryField.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":15266,"timestamp":40905027056,"id":2189,"parentId":2044,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15381,"timestamp":40905027171,"id":2193,"parentId":2086,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16597,"timestamp":40905027084,"id":2190,"parentId":2062,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17041,"timestamp":40905027143,"id":2192,"parentId":2063,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17408,"timestamp":40905027198,"id":2194,"parentId":2088,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":17750,"timestamp":40905027232,"id":2195,"parentId":2092,"tags":{"name":"/app/layouts/components/AdminUserDropdown.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18379,"timestamp":40905027321,"id":2198,"parentId":2086,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":44634,"timestamp":40905001625,"id":2168,"parentId":2084,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/on.js","layer":null},"startTime":1733737115366,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":19885,"timestamp":40905027348,"id":2199,"parentId":2087,"tags":{"name":"/app/functions/frontend/newEntryHandler.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":20981,"timestamp":40905027264,"id":2196,"parentId":2089,"tags":{"name":"/app/components/admin/databases/SyncDataButton.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":22449,"timestamp":40905027292,"id":2197,"parentId":2086,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.jsx","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":52282,"timestamp":40905015315,"id":2178,"parentId":1924,"tags":{"name":"/app/node_modules/scheduler/index.js","layer":null},"startTime":1733737115380,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":66603,"timestamp":40905001422,"id":2167,"parentId":2057,"tags":{"name":"/app/node_modules/next/dist/shared/lib/normalized-asset-prefix.js","layer":null},"startTime":1733737115366,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6230,"timestamp":40905062248,"id":2213,"parentId":2114,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.jsx","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":6717,"timestamp":40905062140,"id":2211,"parentId":2113,"tags":{"name":"/app/components/su/components/UserFolder.jsx","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":7010,"timestamp":40905062215,"id":2212,"parentId":2113,"tags":{"name":"/app/components/su/components/UserSingleFile.jsx","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":49105,"timestamp":40905026856,"id":2183,"parentId":2084,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/contrib/backo2.js","layer":null},"startTime":1733737115392,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3849,"timestamp":40905072855,"id":2216,"parentId":2115,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":4314,"timestamp":40905072923,"id":2218,"parentId":2115,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":5030,"timestamp":40905072787,"id":2215,"parentId":2115,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1938,"timestamp":40905079357,"id":2227,"parentId":2186,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2391,"timestamp":40905079437,"id":2228,"parentId":2184,"tags":{"name":"__barrel_optimize__?names=ChevronRight,DatabaseBackup,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2789,"timestamp":40905079469,"id":2229,"parentId":2191,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":3178,"timestamp":40905079605,"id":2233,"parentId":2195,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12132,"timestamp":40905072981,"id":2220,"parentId":2115,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":12711,"timestamp":40905072953,"id":2219,"parentId":2115,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13238,"timestamp":40905073011,"id":2221,"parentId":2115,"tags":{"name":"/app/components/general/Modal.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13747,"timestamp":40905073067,"id":2223,"parentId":2141,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.js","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":14213,"timestamp":40905073098,"id":2224,"parentId":2141,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.js","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":16647,"timestamp":40905072891,"id":2217,"parentId":2115,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17319,"timestamp":40905073127,"id":2225,"parentId":2145,"tags":{"name":"/app/components/su/components/RichText/fns.js","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":18732,"timestamp":40905073155,"id":2226,"parentId":2145,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.jsx","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12550,"timestamp":40905079575,"id":2232,"parentId":2201,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12790,"timestamp":40905079544,"id":2231,"parentId":2200,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13027,"timestamp":40905079496,"id":2230,"parentId":2200,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13487,"timestamp":40905079631,"id":2234,"parentId":2171,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.jsx","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":13975,"timestamp":40905079686,"id":2236,"parentId":2171,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.jsx","layer":null},"startTime":1733737115445,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":14536,"timestamp":40905079659,"id":2235,"parentId":2171,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.jsx","layer":null},"startTime":1733737115444,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452588,"timestamp":40903648317,"id":1451,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F500.jsx&page=%2F500!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452602,"timestamp":40903648314,"id":1450,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F404.jsx&page=%2F404!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452579,"timestamp":40903648341,"id":1454,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fabout.jsx&page=%2Fabout!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452465,"timestamp":40903648461,"id":1489,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcontact.jsx&page=%2Fcontact!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452458,"timestamp":40903648473,"id":1493,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Findex.jsx&page=%2F!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452471,"timestamp":40903648470,"id":1492,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcreate-account.jsx&page=%2Fcreate-account!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452471,"timestamp":40903648479,"id":1495,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fprivacy.jsx&page=%2Fprivacy!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452468,"timestamp":40903648487,"id":1498,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fredirect.jsx&page=%2Fredirect!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452460,"timestamp":40903648499,"id":1502,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsend-password-reset-link.jsx&page=%2Fsend-password-reset-link!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452435,"timestamp":40903648528,"id":1512,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Freset-password.jsx&page=%2Freset-password!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1449998,"timestamp":40903650968,"id":1516,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fterms.jsx&page=%2Fterms!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1449986,"timestamp":40903650984,"id":1519,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Funsubscribe.jsx&page=%2Funsubscribe!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452516,"timestamp":40903648458,"id":1488,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fblog%2Findex.jsx&page=%2Fblog!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452511,"timestamp":40903648468,"id":1491,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2Findex.jsx&page=%2Fdocs!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452497,"timestamp":40903648484,"id":1497,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Femail-verification%2Findex.jsx&page=%2Femail-verification!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452519,"timestamp":40903648465,"id":1490,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&page=%2Fdocs%2F%5Bpage%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452506,"timestamp":40903648481,"id":1496,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.jsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452540,"timestamp":40903648451,"id":1486,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2Findex.jsx&page=%2Fadmin!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452574,"timestamp":40903648421,"id":1477,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452572,"timestamp":40903648426,"id":1479,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452654,"timestamp":40903648348,"id":1456,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452591,"timestamp":40903648416,"id":1475,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452654,"timestamp":40903648355,"id":1457,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452558,"timestamp":40903648455,"id":1487,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452577,"timestamp":40903648439,"id":1483,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452660,"timestamp":40903648360,"id":1458,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452659,"timestamp":40903648363,"id":1459,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452660,"timestamp":40903648366,"id":1460,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452587,"timestamp":40903648442,"id":1484,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452600,"timestamp":40903648436,"id":1482,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452632,"timestamp":40903648408,"id":1472,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452632,"timestamp":40903648410,"id":1473,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452632,"timestamp":40903648413,"id":1474,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452601,"timestamp":40903648446,"id":1485,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452657,"timestamp":40903648393,"id":1467,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452649,"timestamp":40903648405,"id":1471,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1452686,"timestamp":40903648369,"id":1461,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2166,"timestamp":40905099529,"id":2238,"parentId":2211,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115464,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2712,"timestamp":40905099613,"id":2239,"parentId":2212,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115464,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1458189,"timestamp":40903648423,"id":1478,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1458211,"timestamp":40903648418,"id":1476,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1458292,"timestamp":40903648345,"id":1455,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":27817,"timestamp":40905079712,"id":2237,"parentId":2176,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.jsx","layer":null},"startTime":1733737115445,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":46147,"timestamp":40905061800,"id":2202,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/PopoverPortal.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47079,"timestamp":40905061889,"id":2203,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/util.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47271,"timestamp":40905061963,"id":2206,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useMemoizedArray.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47792,"timestamp":40905061994,"id":2207,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useArrowContainer.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":48128,"timestamp":40905062032,"id":2208,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/ArrowContainer.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":71904,"timestamp":40905062051,"id":2209,"parentId":2155,"tags":{"name":"/app/node_modules/gsap/gsap-core.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":72556,"timestamp":40905061942,"id":2205,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useHandlePrevValues.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":82921,"timestamp":40905062088,"id":2210,"parentId":2155,"tags":{"name":"/app/node_modules/gsap/CSSPlugin.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":84215,"timestamp":40905061917,"id":2204,"parentId":2136,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/usePopover.js","layer":null},"startTime":1733737115427,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":46725,"timestamp":40905099755,"id":2243,"parentId":2197,"tags":{"name":"/app/functions/frontend/addNewIndex.js","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47038,"timestamp":40905099692,"id":2241,"parentId":2188,"tags":{"name":"/app/functions/frontend/addNewField.js","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":47693,"timestamp":40905099642,"id":2240,"parentId":2187,"tags":{"name":"/app/functions/frontend/reorderField.js","layer":null},"startTime":1733737115464,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":48581,"timestamp":40905099724,"id":2242,"parentId":2191,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.js","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":48998,"timestamp":40905099813,"id":2245,"parentId":2191,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.jsx","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":49433,"timestamp":40905099864,"id":2247,"parentId":2191,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.jsx","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":50403,"timestamp":40905099784,"id":2244,"parentId":2188,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.jsx","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"}] -[{"name":"build-module-js","duration":50967,"timestamp":40905099891,"id":2248,"parentId":2196,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.js","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":52068,"timestamp":40905099840,"id":2246,"parentId":2198,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.jsx","layer":null},"startTime":1733737115465,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1505889,"timestamp":40903650881,"id":1515,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.jsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!"},"startTime":1733737114016,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":87701,"timestamp":40905073040,"id":2222,"parentId":1992,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/index.js","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":89929,"timestamp":40905072710,"id":2214,"parentId":2135,"tags":{"name":"/app/node_modules/gsap/utils/matrix.js","layer":null},"startTime":1733737115438,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1514622,"timestamp":40903648399,"id":1469,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1514658,"timestamp":40903648373,"id":1462,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1514652,"timestamp":40903648384,"id":1464,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1178,"timestamp":40905162848,"id":2249,"parentId":2226,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115528,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1604,"timestamp":40905162986,"id":2251,"parentId":2236,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115528,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":4339,"timestamp":40905162932,"id":2250,"parentId":2227,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1733737115528,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1519858,"timestamp":40903648402,"id":1470,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":2215,"timestamp":40905167833,"id":2253,"parentId":2247,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.jsx","layer":null},"startTime":1733737115533,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2774,"timestamp":40905167875,"id":2254,"parentId":2245,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.js","layer":null},"startTime":1733737115533,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2447,"timestamp":40905168674,"id":2256,"parentId":2251,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1733737115533,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1523298,"timestamp":40903648429,"id":1480,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1523308,"timestamp":40903648432,"id":1481,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5362,"timestamp":40905167724,"id":2252,"parentId":2246,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.js","layer":null},"startTime":1733737115533,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7812,"timestamp":40905167909,"id":2255,"parentId":2178,"tags":{"name":"/app/node_modules/scheduler/cjs/scheduler.production.min.js","layer":null},"startTime":1733737115533,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1527721,"timestamp":40903648239,"id":1448,"parentId":1447,"tags":{"request":"./node_modules/next/dist/client/next.js"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8587,"timestamp":40905168738,"id":2257,"parentId":2204,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useElementRef.js","layer":null},"startTime":1733737115534,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1529659,"timestamp":40903648396,"id":1468,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1529677,"timestamp":40903648390,"id":1466,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":965,"timestamp":40905177687,"id":2259,"parentId":2253,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733737115543,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6948,"timestamp":40905175862,"id":2258,"parentId":2222,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.js","layer":null},"startTime":1733737115541,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5281,"timestamp":40905178943,"id":2262,"parentId":2254,"tags":{"name":"/app/functions/frontend/handleCopyHTML.js","layer":null},"startTime":1733737115544,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5661,"timestamp":40905179054,"id":2264,"parentId":2254,"tags":{"name":"/app/functions/frontend/handleEmbed.js","layer":null},"startTime":1733737115544,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6094,"timestamp":40905179013,"id":2263,"parentId":2254,"tags":{"name":"/app/functions/frontend/handleEditHTML.js","layer":null},"startTime":1733737115544,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13377,"timestamp":40905177753,"id":2260,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/index.js","layer":null},"startTime":1733737115543,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13715,"timestamp":40905177787,"id":2261,"parentId":1965,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/index.js","layer":null},"startTime":1733737115543,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8743,"timestamp":40905182978,"id":2265,"parentId":2259,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1733737115548,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8816,"timestamp":40905183068,"id":2266,"parentId":2259,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1733737115548,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3413,"timestamp":40905195744,"id":2267,"parentId":2262,"tags":{"name":"/app/components/general/EmbedPopupContent.jsx","layer":null},"startTime":1733737115561,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-jsx","duration":3883,"timestamp":40905195839,"id":2268,"parentId":2263,"tags":{"name":"/app/components/general/EditHTMLPopupContent.jsx","layer":null},"startTime":1733737115561,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":5977,"timestamp":40905195905,"id":2270,"parentId":2258,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.js","layer":null},"startTime":1733737115561,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":6709,"timestamp":40905195935,"id":2271,"parentId":2258,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js","layer":null},"startTime":1733737115561,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":7698,"timestamp":40905195876,"id":2269,"parentId":2258,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.js","layer":null},"startTime":1733737115561,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8360,"timestamp":40905196683,"id":2272,"parentId":2258,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":8861,"timestamp":40905196754,"id":2274,"parentId":2260,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/is-binary.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9442,"timestamp":40905196727,"id":2273,"parentId":2260,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/binary.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12015,"timestamp":40905196773,"id":2275,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/socket.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":12628,"timestamp":40905196791,"id":2276,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transport.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13070,"timestamp":40905196810,"id":2277,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/util.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13336,"timestamp":40905196828,"id":2278,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/globals.js","layer":null},"startTime":1733737115562,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13166,"timestamp":40905200635,"id":2279,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/index.js","layer":null},"startTime":1733737115565,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":13656,"timestamp":40905200690,"id":2280,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-fetch.js","layer":null},"startTime":1733737115566,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15056,"timestamp":40905200719,"id":2281,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-xhr.js","layer":null},"startTime":1733737115566,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":15690,"timestamp":40905200774,"id":2283,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/webtransport.js","layer":null},"startTime":1733737115566,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":16623,"timestamp":40905200748,"id":2282,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/websocket.js","layer":null},"startTime":1733737115566,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17117,"timestamp":40905200835,"id":2285,"parentId":2084,"tags":{"name":"/app/node_modules/@socket.io/component-emitter/lib/esm/index.js","layer":null},"startTime":1733737115566,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":17928,"timestamp":40905200811,"id":2284,"parentId":2261,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseuri.js","layer":null},"startTime":1733737115566,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":9553,"timestamp":40905212843,"id":2286,"parentId":2268,"tags":{"name":"/app/node_modules/html-prettify/src/index.js","layer":null},"startTime":1733737115578,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1550,"timestamp":40905222969,"id":2287,"parentId":2275,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseqs.js","layer":null},"startTime":1733737115588,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1583,"timestamp":40905223321,"id":2289,"parentId":2281,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/has-cors.js","layer":null},"startTime":1733737115588,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":2202,"timestamp":40905223271,"id":2288,"parentId":2280,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling.js","layer":null},"startTime":1733737115588,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":726,"timestamp":40905226155,"id":2290,"parentId":2286,"tags":{"name":"/app/node_modules/html-prettify/src/utils/addIndentation.js","layer":null},"startTime":1733737115591,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1044,"timestamp":40905226196,"id":2291,"parentId":2286,"tags":{"name":"/app/node_modules/html-prettify/src/utils/toLines.js","layer":null},"startTime":1733737115591,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":441,"timestamp":40905227789,"id":2292,"parentId":2272,"tags":{"name":"/app/node_modules/prop-types/index.js","layer":null},"startTime":1733737115593,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":398,"timestamp":40905229355,"id":2294,"parentId":2292,"tags":{"name":"/app/node_modules/prop-types/factoryWithThrowingShims.js","layer":null},"startTime":1733737115594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1327,"timestamp":40905229312,"id":2293,"parentId":2275,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/index.js","layer":null},"startTime":1733737115594,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":778,"timestamp":40905231731,"id":2296,"parentId":2293,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/decodePacket.browser.js","layer":null},"startTime":1733737115597,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1316,"timestamp":40905231691,"id":2295,"parentId":2293,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","layer":null},"startTime":1733737115597,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1905,"timestamp":40905231810,"id":2297,"parentId":2293,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/commons.js","layer":null},"startTime":1733737115597,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":1837,"timestamp":40905232088,"id":2298,"parentId":2294,"tags":{"name":"/app/node_modules/prop-types/lib/ReactPropTypesSecret.js","layer":null},"startTime":1733737115597,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1587021,"timestamp":40903648501,"id":1503,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.jsx&page=%2Fsu%2Fdocs%2Fcreate-page!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1587033,"timestamp":40903648505,"id":1504,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.jsx&page=%2Fsu%2Fdocs%2Fedit-page!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1587179,"timestamp":40903648379,"id":1463,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1587175,"timestamp":40903648387,"id":1465,"parentId":1447,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"build-module-js","duration":800,"timestamp":40905235839,"id":2299,"parentId":2296,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","layer":null},"startTime":1733737115601,"traceId":"abc7307b6d44cd6e"},{"name":"add-entry","duration":1588191,"timestamp":40903648492,"id":1500,"parentId":1447,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fconsole.jsx&page=%2Fsu%2Fconsole!"},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"make","duration":1588752,"timestamp":40903647999,"id":1447,"parentId":1446,"tags":{},"startTime":1733737114013,"traceId":"abc7307b6d44cd6e"},{"name":"chunk-graph","duration":26399,"timestamp":40905285617,"id":2301,"parentId":2300,"tags":{},"startTime":1733737115650,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-modules","duration":11,"timestamp":40905312085,"id":2303,"parentId":2300,"tags":{},"startTime":1733737115677,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-chunks","duration":23172,"timestamp":40905312255,"id":2304,"parentId":2300,"tags":{},"startTime":1733737115677,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-tree","duration":19,"timestamp":40905335575,"id":2305,"parentId":2300,"tags":{},"startTime":1733737115700,"traceId":"abc7307b6d44cd6e"},{"name":"optimize-chunk-modules","duration":24256,"timestamp":40905335700,"id":2306,"parentId":2300,"tags":{},"startTime":1733737115701,"traceId":"abc7307b6d44cd6e"},{"name":"optimize","duration":47928,"timestamp":40905312063,"id":2302,"parentId":2300,"tags":{},"startTime":1733737115677,"traceId":"abc7307b6d44cd6e"},{"name":"module-hash","duration":24216,"timestamp":40905371436,"id":2307,"parentId":2300,"tags":{},"startTime":1733737115736,"traceId":"abc7307b6d44cd6e"},{"name":"code-generation","duration":295409,"timestamp":40905395692,"id":2308,"parentId":2300,"tags":{},"startTime":1733737115761,"traceId":"abc7307b6d44cd6e"},{"name":"hash","duration":8241,"timestamp":40905694611,"id":2309,"parentId":2300,"tags":{},"startTime":1733737116059,"traceId":"abc7307b6d44cd6e"},{"name":"code-generation-jobs","duration":223,"timestamp":40905702850,"id":2310,"parentId":2300,"tags":{},"startTime":1733737116068,"traceId":"abc7307b6d44cd6e"},{"name":"module-assets","duration":370,"timestamp":40905702993,"id":2311,"parentId":2300,"tags":{},"startTime":1733737116068,"traceId":"abc7307b6d44cd6e"},{"name":"create-chunk-assets","duration":21030,"timestamp":40905703372,"id":2312,"parentId":2300,"tags":{},"startTime":1733737116068,"traceId":"abc7307b6d44cd6e"},{"name":"NextJsBuildManifest-generateClientManifest","duration":2615,"timestamp":40905728891,"id":2314,"parentId":1446,"tags":{},"startTime":1733737116094,"traceId":"abc7307b6d44cd6e"},{"name":"NextJsBuildManifest-createassets","duration":4089,"timestamp":40905727431,"id":2313,"parentId":1446,"tags":{},"startTime":1733737116092,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":124284,"timestamp":40905754005,"id":2317,"parentId":2315,"tags":{"name":"static/chunks/pages/_error-158556db7d796075.js","cache":"MISS"},"startTime":1733737116119,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":123743,"timestamp":40905754607,"id":2319,"parentId":2315,"tags":{"name":"static/chunks/pages/500-f11e82ac7d66d7bb.js","cache":"MISS"},"startTime":1733737116119,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":124312,"timestamp":40905754069,"id":2318,"parentId":2315,"tags":{"name":"static/chunks/pages/404-d3be0a86fd3678cf.js","cache":"MISS"},"startTime":1733737116119,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":122508,"timestamp":40905755908,"id":2321,"parentId":2315,"tags":{"name":"static/chunks/pages/about-c047a055959f9e36.js","cache":"MISS"},"startTime":1733737116121,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":122239,"timestamp":40905756215,"id":2322,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-6aa37f085c32fb31.js","cache":"MISS"},"startTime":1733737116121,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":117235,"timestamp":40905761266,"id":2323,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/api-keys-f28946cc6963ccf9.js","cache":"MISS"},"startTime":1733737116126,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":123792,"timestamp":40905754749,"id":2320,"parentId":2315,"tags":{"name":"static/chunks/pages/_app-44c7242e74015da3.js","cache":"MISS"},"startTime":1733737116120,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":116580,"timestamp":40905762034,"id":2324,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/connect-e50451186e58599d.js","cache":"MISS"},"startTime":1733737116127,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":115404,"timestamp":40905763232,"id":2325,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]-6e864b78c360dc49.js","cache":"MISS"},"startTime":1733737116128,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":114719,"timestamp":40905763939,"id":2326,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/connect-1dba75ac7cb9ebad.js","cache":"MISS"},"startTime":1733737116129,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":114127,"timestamp":40905764552,"id":2327,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/shell-7eb89b5c12b99925.js","cache":"MISS"},"startTime":1733737116129,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":113644,"timestamp":40905765059,"id":2328,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/schema-95e8dd03ad7c6a06.js","cache":"MISS"},"startTime":1733737116130,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":112893,"timestamp":40905765830,"id":2329,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-57698ade1c7f0765.js","cache":"MISS"},"startTime":1733737116131,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":112307,"timestamp":40905766437,"id":2330,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-4cc1adf18787829a.js","cache":"MISS"},"startTime":1733737116131,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":110879,"timestamp":40905767886,"id":2333,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ff447534e3b2bafc.js","cache":"MISS"},"startTime":1733737116133,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":111295,"timestamp":40905767495,"id":2332,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-8024b2e1401983d0.js","cache":"MISS"},"startTime":1733737116132,"traceId":"abc7307b6d44cd6e"}] -[{"name":"minify-js","duration":112114,"timestamp":40905767058,"id":2331,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-945538ec0fc0b0a7.js","cache":"MISS"},"startTime":1733737116132,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":111074,"timestamp":40905768122,"id":2334,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-a94b66837c400d17.js","cache":"MISS"},"startTime":1733737116133,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":108835,"timestamp":40905770384,"id":2337,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables-dcf740bfd5b6043a.js","cache":"MISS"},"startTime":1733737116135,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":109672,"timestamp":40905769609,"id":2336,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-89f86ad8d27962ba.js","cache":"MISS"},"startTime":1733737116134,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":108529,"timestamp":40905770780,"id":2338,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-4c92ed1d49bb3ade.js","cache":"MISS"},"startTime":1733737116136,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":110963,"timestamp":40905768397,"id":2335,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-200b750a1d54ab23.js","cache":"MISS"},"startTime":1733737116133,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":108279,"timestamp":40905771103,"id":2339,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-8638f09e55b93d73.js","cache":"MISS"},"startTime":1733737116136,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":107153,"timestamp":40905772247,"id":2342,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases-ab3ab0465518f781.js","cache":"MISS"},"startTime":1733737116137,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":108684,"timestamp":40905772277,"id":2343,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/add-database-ab8db775e056ed0b.js","cache":"MISS"},"startTime":1733737116137,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":108991,"timestamp":40905772375,"id":2344,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]-8cd567a45d19f285.js","cache":"MISS"},"startTime":1733737116137,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":109950,"timestamp":40905771912,"id":2341,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users-2c07a215e8b1844b.js","cache":"MISS"},"startTime":1733737116137,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":112933,"timestamp":40905771527,"id":2340,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-cfed17c2c3dbdc2a.js","cache":"MISS"},"startTime":1733737116136,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":114555,"timestamp":40905772402,"id":2345,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/settings-342a5e743fad8482.js","cache":"MISS"},"startTime":1733737116137,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":114222,"timestamp":40905772961,"id":2347,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/media-40ea936905622f51.js","cache":"MISS"},"startTime":1733737116138,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":117108,"timestamp":40905773130,"id":2348,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/media/[...folder]-6b62e8d93e0375ac.js","cache":"MISS"},"startTime":1733737116138,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":118581,"timestamp":40905772658,"id":2346,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/schema-d80b040d32aa39ec.js","cache":"MISS"},"startTime":1733737116137,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":121155,"timestamp":40905773922,"id":2351,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases-3db26019e8f19ba3.js","cache":"MISS"},"startTime":1733737116139,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":124137,"timestamp":40905773327,"id":2349,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-8995148ebfecac95.js","cache":"MISS"},"startTime":1733737116138,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":124368,"timestamp":40905774311,"id":2353,"parentId":2315,"tags":{"name":"static/chunks/pages/admin-94357d2bafa89374.js","cache":"MISS"},"startTime":1733737116139,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":126775,"timestamp":40905773610,"id":2350,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/add-user-ab482f93dfcbcad0.js","cache":"MISS"},"startTime":1733737116138,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":126504,"timestamp":40905774682,"id":2355,"parentId":2315,"tags":{"name":"static/chunks/pages/blog-a8a33a7d5621105d.js","cache":"MISS"},"startTime":1733737116140,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":127594,"timestamp":40905774103,"id":2352,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]-fceda461648030cf.js","cache":"MISS"},"startTime":1733737116139,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":129207,"timestamp":40905774776,"id":2356,"parentId":2315,"tags":{"name":"static/chunks/pages/contact-3869bcc89874f637.js","cache":"MISS"},"startTime":1733737116140,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":129763,"timestamp":40905774973,"id":2357,"parentId":2315,"tags":{"name":"static/chunks/pages/docs/[page]-cc4ca4653a2d03ad.js","cache":"MISS"},"startTime":1733737116140,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":132243,"timestamp":40905774372,"id":2354,"parentId":2315,"tags":{"name":"static/chunks/pages/admin/[user_id]/users-5bce6df1085f95c2.js","cache":"MISS"},"startTime":1733737116139,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":132021,"timestamp":40905775284,"id":2359,"parentId":2315,"tags":{"name":"static/chunks/pages/create-account-4811a08ebba7a216.js","cache":"MISS"},"startTime":1733737116140,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":132318,"timestamp":40905775101,"id":2358,"parentId":2315,"tags":{"name":"static/chunks/pages/docs-7c4791ef7bc1770a.js","cache":"MISS"},"startTime":1733737116140,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":135191,"timestamp":40905775417,"id":2360,"parentId":2315,"tags":{"name":"static/chunks/pages/index-2cd214ffbfab8c5f.js","cache":"MISS"},"startTime":1733737116140,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":135264,"timestamp":40905775740,"id":2361,"parentId":2315,"tags":{"name":"static/chunks/pages/login-a5ec360e993a8c69.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":135245,"timestamp":40905775926,"id":2362,"parentId":2315,"tags":{"name":"static/chunks/pages/privacy-cf61eebe523439da.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":136250,"timestamp":40905776358,"id":2365,"parentId":2315,"tags":{"name":"static/chunks/pages/redirect-bc1ef797a5958a5d.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":136862,"timestamp":40905776272,"id":2364,"parentId":2315,"tags":{"name":"static/chunks/pages/email-verification-911373dc605e3680.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":137331,"timestamp":40905776164,"id":2363,"parentId":2315,"tags":{"name":"static/chunks/pages/docs/[page]/[sub-page]-eef188f5189b6cd5.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":139193,"timestamp":40905776421,"id":2366,"parentId":2315,"tags":{"name":"static/chunks/pages/logout-baf174c366113e34.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":140196,"timestamp":40905776509,"id":2367,"parentId":2315,"tags":{"name":"static/chunks/pages/su/console-3b0fd9864c5e6c0f.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":140676,"timestamp":40905777033,"id":2370,"parentId":2315,"tags":{"name":"static/chunks/pages/su/docs/create-page-bc6278bfecd56b48.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":141649,"timestamp":40905776655,"id":2368,"parentId":2315,"tags":{"name":"static/chunks/pages/su/backups-dd8d348bd7552c26.js","cache":"MISS"},"startTime":1733737116141,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":141680,"timestamp":40905776898,"id":2369,"parentId":2315,"tags":{"name":"static/chunks/pages/send-password-reset-link-8e28cf664ab914f4.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":141692,"timestamp":40905777080,"id":2371,"parentId":2315,"tags":{"name":"static/chunks/pages/su/docs/edit-page-6f303c8b5bff2569.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":142298,"timestamp":40905777126,"id":2372,"parentId":2315,"tags":{"name":"static/chunks/pages/su/docs-f2445eeeae7f9a23.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":142527,"timestamp":40905777171,"id":2373,"parentId":2315,"tags":{"name":"static/chunks/pages/su/docs/pages-12382c470c6b6e5a.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":143229,"timestamp":40905777403,"id":2375,"parentId":2315,"tags":{"name":"static/chunks/pages/su/docs/pages/[id]-acc29f791359a531.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":146866,"timestamp":40905777219,"id":2374,"parentId":2315,"tags":{"name":"static/chunks/pages/su/envar-ac5c5fcaa60cda05.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":148654,"timestamp":40905777680,"id":2377,"parentId":2315,"tags":{"name":"static/chunks/pages/su-f5c1d2829ae62d3b.js","cache":"MISS"},"startTime":1733737116143,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":149637,"timestamp":40905777480,"id":2376,"parentId":2315,"tags":{"name":"static/chunks/pages/su/error-logs-131243ff0bc8350a.js","cache":"MISS"},"startTime":1733737116142,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":151407,"timestamp":40905778051,"id":2379,"parentId":2315,"tags":{"name":"static/chunks/pages/reset-password-96d3c466c04d3b40.js","cache":"MISS"},"startTime":1733737116143,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":153035,"timestamp":40905778148,"id":2380,"parentId":2315,"tags":{"name":"static/chunks/pages/su/servers-7dfae349147e2b04.js","cache":"MISS"},"startTime":1733737116143,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":152928,"timestamp":40905778283,"id":2381,"parentId":2315,"tags":{"name":"static/chunks/pages/su/login-386aae5d3f48c201.js","cache":"MISS"},"startTime":1733737116143,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":154498,"timestamp":40905777810,"id":2378,"parentId":2315,"tags":{"name":"static/chunks/pages/su/load-balancing-829115d5381c27b3.js","cache":"MISS"},"startTime":1733737116143,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":183625,"timestamp":40905749873,"id":2316,"parentId":2315,"tags":{"name":"static/chunks/main-06cc9931c10fd0dd.js","cache":"MISS"},"startTime":1733737116115,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":156869,"timestamp":40905778884,"id":2383,"parentId":2315,"tags":{"name":"static/chunks/pages/terms-d8e2638761c13c64.js","cache":"MISS"},"startTime":1733737116144,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":156744,"timestamp":40905779151,"id":2384,"parentId":2315,"tags":{"name":"static/chunks/pages/su/users-7dfea8108f059169.js","cache":"MISS"},"startTime":1733737116144,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":157528,"timestamp":40905779294,"id":2385,"parentId":2315,"tags":{"name":"static/chunks/pages/su/users/new-e33e6730ca9a68fd.js","cache":"MISS"},"startTime":1733737116144,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":158251,"timestamp":40905779425,"id":2386,"parentId":2315,"tags":{"name":"static/chunks/pages/unsubscribe-6f2a5aa3a43f81a8.js","cache":"MISS"},"startTime":1733737116144,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":159204,"timestamp":40905779497,"id":2387,"parentId":2315,"tags":{"name":"static/chunks/webpack-810c18afc07353bc.js","cache":"MISS"},"startTime":1733737116144,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":165136,"timestamp":40905778362,"id":2382,"parentId":2315,"tags":{"name":"static/chunks/pages/su/users/[single]-f5e0e39f5c37ad38.js","cache":"MISS"},"startTime":1733737116143,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":259241,"timestamp":40905781824,"id":2390,"parentId":2315,"tags":{"name":"static/chunks/94726e6d-32f68157960855f5.js","cache":"MISS"},"startTime":1733737116147,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":281448,"timestamp":40905782921,"id":2392,"parentId":2315,"tags":{"name":"static/chunks/8717-6b744eb0e3603e7d.js","cache":"MISS"},"startTime":1733737116148,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":298124,"timestamp":40905779935,"id":2389,"parentId":2315,"tags":{"name":"static/chunks/29107295-4162eac4082347dd.js","cache":"MISS"},"startTime":1733737116145,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":295659,"timestamp":40905783284,"id":2393,"parentId":2315,"tags":{"name":"static/chunks/1391-080ec9229321da22.js","cache":"MISS"},"startTime":1733737116148,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":312912,"timestamp":40905784960,"id":2395,"parentId":2315,"tags":{"name":"static/chunks/2004-989bd6ee1a0836e5.js","cache":"MISS"},"startTime":1733737116150,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":340173,"timestamp":40905779554,"id":2388,"parentId":2315,"tags":{"name":"static/chunks/framework-efef230bfc598a3c.js","cache":"MISS"},"startTime":1733737116144,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":338124,"timestamp":40905786928,"id":2397,"parentId":2315,"tags":{"name":"static/chunks/8779-2595622178479c7a.js","cache":"MISS"},"startTime":1733737116152,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":345785,"timestamp":40905787097,"id":2398,"parentId":2315,"tags":{"name":"static/chunks/9799-c09327b5d8f911bf.js","cache":"MISS"},"startTime":1733737116152,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":351472,"timestamp":40905787638,"id":2399,"parentId":2315,"tags":{"name":"static/chunks/304-b8d7a7206704a9e8.js","cache":"MISS"},"startTime":1733737116152,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":358008,"timestamp":40905785384,"id":2396,"parentId":2315,"tags":{"name":"static/chunks/2793-2d190b821661fe93.js","cache":"MISS"},"startTime":1733737116150,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":350107,"timestamp":40905794003,"id":2400,"parentId":2315,"tags":{"name":"static/chunks/5414-e39e0295d31af343.js","cache":"MISS"},"startTime":1733737116159,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":360948,"timestamp":40905783797,"id":2394,"parentId":2315,"tags":{"name":"static/chunks/2413-88143337cfbee401.js","cache":"MISS"},"startTime":1733737116149,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":352548,"timestamp":40905794250,"id":2401,"parentId":2315,"tags":{"name":"static/chunks/2016-ab83fcf9773fa412.js","cache":"MISS"},"startTime":1733737116159,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":360359,"timestamp":40905794626,"id":2402,"parentId":2315,"tags":{"name":"static/chunks/6836-69ac9f41016d4890.js","cache":"MISS"},"startTime":1733737116159,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":365891,"timestamp":40905795165,"id":2403,"parentId":2315,"tags":{"name":"static/chunks/5160-c0011c74520be311.js","cache":"MISS"},"startTime":1733737116160,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":366915,"timestamp":40905795989,"id":2404,"parentId":2315,"tags":{"name":"static/chunks/6156-fc2cb87802851b6a.js","cache":"MISS"},"startTime":1733737116161,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":369502,"timestamp":40905796929,"id":2405,"parentId":2315,"tags":{"name":"static/chunks/3616-433a6ce04bdfe74c.js","cache":"MISS"},"startTime":1733737116162,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":373557,"timestamp":40905798192,"id":2407,"parentId":2315,"tags":{"name":"static/chunks/3857-5fdc9fdbc2ceb616.js","cache":"MISS"},"startTime":1733737116163,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":373383,"timestamp":40905798448,"id":2408,"parentId":2315,"tags":{"name":"static/chunks/4565-fa373900e5abcc2e.js","cache":"MISS"},"startTime":1733737116163,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":377605,"timestamp":40905797513,"id":2406,"parentId":2315,"tags":{"name":"static/chunks/2163-39dbea13be99f540.js","cache":"MISS"},"startTime":1733737116162,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":378064,"timestamp":40905798588,"id":2409,"parentId":2315,"tags":{"name":"static/chunks/3061-aee06042dd421240.js","cache":"MISS"},"startTime":1733737116163,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":388758,"timestamp":40905800725,"id":2412,"parentId":2315,"tags":{"name":"static/chunks/6052-982ccd1835268374.js","cache":"MISS"},"startTime":1733737116166,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":389527,"timestamp":40905800009,"id":2411,"parentId":2315,"tags":{"name":"static/chunks/6803-b0a26b8f89e9e859.js","cache":"MISS"},"startTime":1733737116165,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":391331,"timestamp":40905801602,"id":2414,"parentId":2315,"tags":{"name":"static/chunks/820-8d322b018f353254.js","cache":"MISS"},"startTime":1733737116166,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":391889,"timestamp":40905801300,"id":2413,"parentId":2315,"tags":{"name":"static/chunks/9907-dc7dcf5051f39917.js","cache":"MISS"},"startTime":1733737116166,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":393189,"timestamp":40905803610,"id":2416,"parentId":2315,"tags":{"name":"static/chunks/9654-14672554e04b07a1.js","cache":"MISS"},"startTime":1733737116168,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":398767,"timestamp":40905798740,"id":2410,"parentId":2315,"tags":{"name":"static/chunks/6460-3c2bc96b5e1b6145.js","cache":"MISS"},"startTime":1733737116164,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":397965,"timestamp":40905804054,"id":2418,"parentId":2315,"tags":{"name":"static/chunks/4147-e7e7f44833e9033a.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":397854,"timestamp":40905804224,"id":2419,"parentId":2315,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":397948,"timestamp":40905804251,"id":2420,"parentId":2315,"tags":{"name":"static/Nq-wCyHRgv6y1x0kf3WAs/_ssgManifest.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":398410,"timestamp":40905803816,"id":2417,"parentId":2315,"tags":{"name":"static/chunks/5165-5987c77b92545418.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":399666,"timestamp":40905804265,"id":2421,"parentId":2315,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":399675,"timestamp":40905804290,"id":2423,"parentId":2315,"tags":{"name":"server/next-font-manifest.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":399707,"timestamp":40905804277,"id":2422,"parentId":2315,"tags":{"name":"static/Nq-wCyHRgv6y1x0kf3WAs/_buildManifest.js","cache":"MISS"},"startTime":1733737116169,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":419605,"timestamp":40905801993,"id":2415,"parentId":2315,"tags":{"name":"static/chunks/5256-94c62ad4f1f6dabc.js","cache":"MISS"},"startTime":1733737116167,"traceId":"abc7307b6d44cd6e"},{"name":"minify-js","duration":450478,"timestamp":40905782494,"id":2391,"parentId":2315,"tags":{"name":"static/chunks/ed150ef9-4bae487078acc5bf.js","cache":"MISS"},"startTime":1733737116147,"traceId":"abc7307b6d44cd6e"},{"name":"minify-webpack-plugin-optimize","duration":500937,"timestamp":40905732055,"id":2315,"parentId":1446,"tags":{"compilationName":"client"},"startTime":1733737116097,"traceId":"abc7307b6d44cd6e"},{"name":"minify-css","duration":384347,"timestamp":40906233196,"id":2425,"parentId":2424,"tags":{"file":"static/css/6c8d5d8aa134f06a.css","cache":"MISS"},"startTime":1733737116598,"traceId":"abc7307b6d44cd6e"},{"name":"minify-css","duration":384288,"timestamp":40906233266,"id":2426,"parentId":2424,"tags":{"file":"static/css/9b1cffe2c89f6bb5.css","cache":"MISS"},"startTime":1733737116598,"traceId":"abc7307b6d44cd6e"},{"name":"minify-css","duration":384286,"timestamp":40906233270,"id":2427,"parentId":2424,"tags":{"file":"static/css/2c3db85a1d7310ee.css","cache":"MISS"},"startTime":1733737116598,"traceId":"abc7307b6d44cd6e"},{"name":"css-minimizer-plugin","duration":384438,"timestamp":40906233122,"id":2424,"parentId":1446,"tags":{},"startTime":1733737116598,"traceId":"abc7307b6d44cd6e"},{"name":"seal","duration":1371029,"timestamp":40905259268,"id":2300,"parentId":1446,"tags":{},"startTime":1733737115624,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-compilation","duration":2983736,"timestamp":40903646655,"id":1446,"parentId":13,"tags":{"name":"client"},"startTime":1733737114011,"traceId":"abc7307b6d44cd6e"},{"name":"emit","duration":12144,"timestamp":40906630447,"id":2428,"parentId":13,"tags":{},"startTime":1733737116995,"traceId":"abc7307b6d44cd6e"},{"name":"webpack-close","duration":866182,"timestamp":40906642878,"id":2429,"parentId":13,"tags":{"name":"client"},"startTime":1733737117008,"traceId":"abc7307b6d44cd6e"}] -[{"name":"webpack-generate-error-stats","duration":831,"timestamp":40907509273,"id":2430,"parentId":2429,"tags":{},"startTime":1733737117874,"traceId":"abc7307b6d44cd6e"},{"name":"run-webpack-compiler","duration":28950719,"timestamp":40878559780,"id":13,"parentId":1,"tags":{},"startTime":1733737088925,"traceId":"abc7307b6d44cd6e"},{"name":"format-webpack-messages","duration":88,"timestamp":40907510506,"id":2431,"parentId":1,"tags":{},"startTime":1733737117875,"traceId":"abc7307b6d44cd6e"},{"name":"check-static-error-page","duration":14731,"timestamp":40907750213,"id":2434,"parentId":2433,"tags":{},"startTime":1733737118115,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":9592,"timestamp":40907800148,"id":2436,"parentId":2433,"tags":{"page":"/_error"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":45463,"timestamp":40907799439,"id":2435,"parentId":2433,"tags":{"page":"/_app"},"startTime":1733737118164,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44753,"timestamp":40907800202,"id":2437,"parentId":2433,"tags":{"page":"/_document"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":43994,"timestamp":40907800984,"id":2474,"parentId":2433,"tags":{"page":"/api/acceptUserInvitation"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":43983,"timestamp":40907801007,"id":2475,"parentId":2433,"tags":{"page":"/api/addAdminUserUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":43999,"timestamp":40907801020,"id":2476,"parentId":2433,"tags":{"page":"/api/addApiKey"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":43988,"timestamp":40907801042,"id":2478,"parentId":2433,"tags":{"page":"/api/addNewMediaFolder"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":43995,"timestamp":40907801053,"id":2479,"parentId":2433,"tags":{"page":"/api/addSocialLogin"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44028,"timestamp":40907801031,"id":2477,"parentId":2433,"tags":{"page":"/api/addDbUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44179,"timestamp":40907801074,"id":2481,"parentId":2433,"tags":{"page":"/api/addUserMedia"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44200,"timestamp":40907801084,"id":2482,"parentId":2433,"tags":{"page":"/api/addUserTable"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44208,"timestamp":40907801094,"id":2483,"parentId":2433,"tags":{"page":"/api/addUserUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44216,"timestamp":40907801105,"id":2484,"parentId":2433,"tags":{"page":"/api/addUsersTableToDatabase"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44272,"timestamp":40907801063,"id":2480,"parentId":2433,"tags":{"page":"/api/addTableEntry"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44220,"timestamp":40907801126,"id":2486,"parentId":2433,"tags":{"page":"/api/admin/clearErrorLogs"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44243,"timestamp":40907801115,"id":2485,"parentId":2433,"tags":{"page":"/api/admin/addUserBackup"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44233,"timestamp":40907801138,"id":2487,"parentId":2433,"tags":{"page":"/api/admin/clientError"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44235,"timestamp":40907801149,"id":2488,"parentId":2433,"tags":{"page":"/api/admin/createNewBackup"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44236,"timestamp":40907801159,"id":2489,"parentId":2433,"tags":{"page":"/api/admin/docs/[action]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44235,"timestamp":40907801169,"id":2490,"parentId":2433,"tags":{"page":"/api/admin/getTablesForUserDatabase"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44235,"timestamp":40907801180,"id":2491,"parentId":2433,"tags":{"page":"/api/admin/getUserBackups"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44236,"timestamp":40907801191,"id":2492,"parentId":2433,"tags":{"page":"/api/admin/getUserData"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44234,"timestamp":40907801201,"id":2493,"parentId":2433,"tags":{"page":"/api/admin/grabBackups"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44232,"timestamp":40907801211,"id":2494,"parentId":2433,"tags":{"page":"/api/admin/grabErrorLogs"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44221,"timestamp":40907801233,"id":2496,"parentId":2433,"tags":{"page":"/api/admin/loginSuUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44240,"timestamp":40907801222,"id":2495,"parentId":2433,"tags":{"page":"/api/admin/grabFile"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44227,"timestamp":40907801244,"id":2497,"parentId":2433,"tags":{"page":"/api/admin/runUserDbQuery"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44225,"timestamp":40907801254,"id":2498,"parentId":2433,"tags":{"page":"/api/admin/updateEnv"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44224,"timestamp":40907801265,"id":2499,"parentId":2433,"tags":{"page":"/api/changeDbUserPassword"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44225,"timestamp":40907801275,"id":2500,"parentId":2433,"tags":{"page":"/api/checkDuplicateData"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44212,"timestamp":40907801296,"id":2502,"parentId":2433,"tags":{"page":"/api/clientSideAuth"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44212,"timestamp":40907801307,"id":2503,"parentId":2433,"tags":{"page":"/api/connect/disconnect"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44212,"timestamp":40907801318,"id":2504,"parentId":2433,"tags":{"page":"/api/connect/handshake"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44212,"timestamp":40907801328,"id":2505,"parentId":2433,"tags":{"page":"/api/connect"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44211,"timestamp":40907801338,"id":2506,"parentId":2433,"tags":{"page":"/api/connect/verify"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44209,"timestamp":40907801350,"id":2507,"parentId":2433,"tags":{"page":"/api/contact"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44217,"timestamp":40907801361,"id":2508,"parentId":2433,"tags":{"page":"/api/createUserDatabase"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44301,"timestamp":40907801286,"id":2501,"parentId":2433,"tags":{"page":"/api/checkExistingFolder"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44226,"timestamp":40907801372,"id":2509,"parentId":2433,"tags":{"page":"/api/deleteApiKey"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44223,"timestamp":40907801382,"id":2510,"parentId":2433,"tags":{"page":"/api/deleteDbUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44221,"timestamp":40907801393,"id":2511,"parentId":2433,"tags":{"page":"/api/deleteInvitation"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44223,"timestamp":40907801403,"id":2512,"parentId":2433,"tags":{"page":"/api/deleteMediaFolder"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44224,"timestamp":40907801414,"id":2513,"parentId":2433,"tags":{"page":"/api/deleteTableEntry"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44212,"timestamp":40907801437,"id":2515,"parentId":2433,"tags":{"page":"/api/deleteUserDatabase"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44215,"timestamp":40907801447,"id":2516,"parentId":2433,"tags":{"page":"/api/deleteUserMedia"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44250,"timestamp":40907801426,"id":2514,"parentId":2433,"tags":{"page":"/api/deleteUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44233,"timestamp":40907801458,"id":2517,"parentId":2433,"tags":{"page":"/api/deleteUserTable"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44233,"timestamp":40907801468,"id":2518,"parentId":2433,"tags":{"page":"/api/deleteUserUser"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44233,"timestamp":40907801478,"id":2519,"parentId":2433,"tags":{"page":"/api/downloadDatabaseSchema"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44286,"timestamp":40907801500,"id":2521,"parentId":2433,"tags":{"page":"/api/exportTableData"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44296,"timestamp":40907801511,"id":2522,"parentId":2433,"tags":{"page":"/api/fetch-entries-basic"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44291,"timestamp":40907801531,"id":2524,"parentId":2433,"tags":{"page":"/api/get-authorized-databases"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44368,"timestamp":40907801521,"id":2523,"parentId":2433,"tags":{"page":"/api/fetch-media"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44414,"timestamp":40907801489,"id":2520,"parentId":2433,"tags":{"page":"/api/exportDatabase"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44386,"timestamp":40907801542,"id":2525,"parentId":2433,"tags":{"page":"/api/getDatabaseTables"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44372,"timestamp":40907801570,"id":2527,"parentId":2433,"tags":{"page":"/api/getDelegatedDatabases"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44398,"timestamp":40907801558,"id":2526,"parentId":2433,"tags":{"page":"/api/getDelegatedDatabaseToken"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44392,"timestamp":40907801580,"id":2528,"parentId":2433,"tags":{"page":"/api/getDiskUsage"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44391,"timestamp":40907801591,"id":2529,"parentId":2433,"tags":{"page":"/api/getUserDatabaseTables"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44390,"timestamp":40907801601,"id":2530,"parentId":2433,"tags":{"page":"/api/getUserDatabases"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44388,"timestamp":40907801612,"id":2531,"parentId":2433,"tags":{"page":"/api/getUserMedia"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44387,"timestamp":40907801623,"id":2532,"parentId":2433,"tags":{"page":"/api/getUserSchemaData"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44377,"timestamp":40907801644,"id":2534,"parentId":2433,"tags":{"page":"/api/importDatabase"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44395,"timestamp":40907801633,"id":2533,"parentId":2433,"tags":{"page":"/api/healthcheck"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44379,"timestamp":40907801665,"id":2536,"parentId":2433,"tags":{"page":"/api/infiniteScroll"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44401,"timestamp":40907801654,"id":2535,"parentId":2433,"tags":{"page":"/api/importDatabaseSchema"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44399,"timestamp":40907801675,"id":2537,"parentId":2433,"tags":{"page":"/api/loginUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44396,"timestamp":40907801686,"id":2538,"parentId":2433,"tags":{"page":"/api/logoutUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44406,"timestamp":40907801696,"id":2539,"parentId":2433,"tags":{"page":"/api/media/addPrivateMedia"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44405,"timestamp":40907801707,"id":2540,"parentId":2433,"tags":{"page":"/api/media/getPrivateMedia"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44406,"timestamp":40907801718,"id":2541,"parentId":2433,"tags":{"page":"/api/purgeDb"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44492,"timestamp":40907801729,"id":2542,"parentId":2433,"tags":{"page":"/api/query/[user_id]/add-file"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44555,"timestamp":40907801739,"id":2543,"parentId":2433,"tags":{"page":"/api/query/[user_id]/add-image"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44616,"timestamp":40907801750,"id":2544,"parentId":2433,"tags":{"page":"/api/query/[user_id]/delete-file"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44671,"timestamp":40907801761,"id":2545,"parentId":2433,"tags":{"page":"/api/query/[user_id]/get-private-file"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44679,"timestamp":40907801773,"id":2546,"parentId":2433,"tags":{"page":"/api/query/[user_id]/get-schema"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44680,"timestamp":40907801784,"id":2547,"parentId":2433,"tags":{"page":"/api/query/[user_id]/get"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44728,"timestamp":40907801795,"id":2548,"parentId":2433,"tags":{"page":"/api/query/[user_id]/post"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44734,"timestamp":40907801806,"id":2549,"parentId":2433,"tags":{"page":"/api/query/[user_id]/update-schema-from-single-database"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44736,"timestamp":40907801817,"id":2550,"parentId":2433,"tags":{"page":"/api/queryEntriesSearchTerm"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44737,"timestamp":40907801827,"id":2551,"parentId":2433,"tags":{"page":"/api/reAuthenticateUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44743,"timestamp":40907801849,"id":2553,"parentId":2433,"tags":{"page":"/api/registerUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44767,"timestamp":40907801838,"id":2552,"parentId":2433,"tags":{"page":"/api/refreshEntry"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44762,"timestamp":40907801859,"id":2554,"parentId":2433,"tags":{"page":"/api/renameMedia"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44760,"timestamp":40907801870,"id":2555,"parentId":2433,"tags":{"page":"/api/resetDelegatedDatabaseToken"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44758,"timestamp":40907801880,"id":2556,"parentId":2433,"tags":{"page":"/api/resetPassword"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44747,"timestamp":40907801902,"id":2558,"parentId":2433,"tags":{"page":"/api/sendEmailVerificationLink"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44748,"timestamp":40907801912,"id":2559,"parentId":2433,"tags":{"page":"/api/sendPasswordResetLink"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44751,"timestamp":40907801923,"id":2560,"parentId":2433,"tags":{"page":"/api/social-login/facebook-auth"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44755,"timestamp":40907801934,"id":2561,"parentId":2433,"tags":{"page":"/api/social-login/github-auth"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44758,"timestamp":40907801944,"id":2562,"parentId":2433,"tags":{"page":"/api/social-login/google-auth"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44757,"timestamp":40907801955,"id":2563,"parentId":2433,"tags":{"page":"/api/social-login/utils/checkEmail"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44833,"timestamp":40907801891,"id":2557,"parentId":2433,"tags":{"page":"/api/runUserDbQuery"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44755,"timestamp":40907801977,"id":2565,"parentId":2433,"tags":{"page":"/api/social-login/utils/getEmailFromSocialId"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44776,"timestamp":40907801966,"id":2564,"parentId":2433,"tags":{"page":"/api/social-login/utils/checkSocialId"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44769,"timestamp":40907801989,"id":2566,"parentId":2433,"tags":{"page":"/api/sql-users/create"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44771,"timestamp":40907802000,"id":2567,"parentId":2433,"tags":{"page":"/api/sql-users/delete"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"}] -[{"name":"check-page","duration":44940,"timestamp":40907802010,"id":2568,"parentId":2433,"tags":{"page":"/api/sql-users/update"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44942,"timestamp":40907802021,"id":2569,"parentId":2433,"tags":{"page":"/api/stream/[path]"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44951,"timestamp":40907802032,"id":2570,"parentId":2433,"tags":{"page":"/api/sync-table-data"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44952,"timestamp":40907802043,"id":2571,"parentId":2433,"tags":{"page":"/api/test/cors"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44953,"timestamp":40907802053,"id":2572,"parentId":2433,"tags":{"page":"/api/test/mail"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44954,"timestamp":40907802064,"id":2573,"parentId":2433,"tags":{"page":"/api/unsubscribe"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44956,"timestamp":40907802074,"id":2574,"parentId":2433,"tags":{"page":"/api/updateAdminUserAccess"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44960,"timestamp":40907802085,"id":2575,"parentId":2433,"tags":{"page":"/api/updateClonedTableForeignKeys"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44965,"timestamp":40907802095,"id":2576,"parentId":2433,"tags":{"page":"/api/updateDbSchemaDataForUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44957,"timestamp":40907802118,"id":2578,"parentId":2433,"tags":{"page":"/api/updateTableEntry"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44982,"timestamp":40907802106,"id":2577,"parentId":2433,"tags":{"page":"/api/updateDbUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44974,"timestamp":40907802129,"id":2579,"parentId":2433,"tags":{"page":"/api/updateUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44982,"timestamp":40907802140,"id":2580,"parentId":2433,"tags":{"page":"/api/updateUserDatabase"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44991,"timestamp":40907802150,"id":2581,"parentId":2433,"tags":{"page":"/api/updateUserTable"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44990,"timestamp":40907802163,"id":2582,"parentId":2433,"tags":{"page":"/api/updateUserUser"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44976,"timestamp":40907802191,"id":2584,"parentId":2433,"tags":{"page":"/api/user/[user_id]/add-user"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":45002,"timestamp":40907802179,"id":2583,"parentId":2433,"tags":{"page":"/api/user-schema/replace-database-schema"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44989,"timestamp":40907802201,"id":2585,"parentId":2433,"tags":{"page":"/api/user/[user_id]/delete-user"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44990,"timestamp":40907802213,"id":2586,"parentId":2433,"tags":{"page":"/api/user/[user_id]/get-user"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44979,"timestamp":40907802235,"id":2588,"parentId":2433,"tags":{"page":"/api/user/[user_id]/google-login"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":45002,"timestamp":40907802224,"id":2587,"parentId":2433,"tags":{"page":"/api/user/[user_id]/github-login"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44991,"timestamp":40907802246,"id":2589,"parentId":2433,"tags":{"page":"/api/user/[user_id]/grab-google-user-from-token"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44979,"timestamp":40907802268,"id":2591,"parentId":2433,"tags":{"page":"/api/user/[user_id]/reauth-user"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44982,"timestamp":40907802278,"id":2592,"parentId":2433,"tags":{"page":"/api/user/[user_id]/send-email-code"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44983,"timestamp":40907802289,"id":2593,"parentId":2433,"tags":{"page":"/api/user/[user_id]/update-user"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":44985,"timestamp":40907802299,"id":2594,"parentId":2433,"tags":{"page":"/api/webhooks/github-push"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":45283,"timestamp":40907802257,"id":2590,"parentId":2433,"tags":{"page":"/api/user/[user_id]/login-user"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":390618,"timestamp":40907850355,"id":2640,"parentId":2450,"tags":{},"startTime":1733737118215,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":440574,"timestamp":40907800495,"id":2450,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":444324,"timestamp":40907850784,"id":2642,"parentId":2454,"tags":{},"startTime":1733737118216,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":494439,"timestamp":40907800707,"id":2454,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/add-table"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":461909,"timestamp":40907850977,"id":2643,"parentId":2453,"tags":{},"startTime":1733737118216,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":512247,"timestamp":40907800678,"id":2453,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":468218,"timestamp":40907851139,"id":2644,"parentId":2456,"tags":{},"startTime":1733737118216,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":518658,"timestamp":40907800741,"id":2456,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":473265,"timestamp":40907851326,"id":2645,"parentId":2458,"tags":{},"startTime":1733737118216,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":523872,"timestamp":40907800769,"id":2458,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":474733,"timestamp":40907850583,"id":2641,"parentId":2452,"tags":{},"startTime":1733737118215,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":524714,"timestamp":40907800634,"id":2452,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":483201,"timestamp":40907851522,"id":2646,"parentId":2455,"tags":{},"startTime":1733737118216,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":534032,"timestamp":40907800726,"id":2455,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":488101,"timestamp":40907851893,"id":2648,"parentId":2459,"tags":{},"startTime":1733737118217,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":539245,"timestamp":40907800784,"id":2459,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-user"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":494233,"timestamp":40907851710,"id":2647,"parentId":2457,"tags":{},"startTime":1733737118217,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":545231,"timestamp":40907800755,"id":2457,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":493905,"timestamp":40907852309,"id":2650,"parentId":2460,"tags":{},"startTime":1733737118217,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":545434,"timestamp":40907800799,"id":2460,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/users"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":499310,"timestamp":40907852090,"id":2649,"parentId":2461,"tags":{},"startTime":1733737118217,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":550620,"timestamp":40907800813,"id":2461,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/add-database"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":504441,"timestamp":40907852485,"id":2651,"parentId":2462,"tags":{},"startTime":1733737118217,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":556128,"timestamp":40907800829,"id":2462,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":510807,"timestamp":40907847981,"id":2631,"parentId":2442,"tags":{},"startTime":1733737118213,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":558494,"timestamp":40907800326,"id":2442,"parentId":2433,"tags":{"page":"/admin/[user_id]/connect"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":508936,"timestamp":40907852663,"id":2652,"parentId":2463,"tags":{},"startTime":1733737118217,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":560787,"timestamp":40907800842,"id":2463,"parentId":2433,"tags":{"page":"/admin/[user_id]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":513156,"timestamp":40907853195,"id":2655,"parentId":2466,"tags":{},"startTime":1733737118218,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":565505,"timestamp":40907800879,"id":2466,"parentId":2433,"tags":{"page":"/admin/[user_id]/schema"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":528511,"timestamp":40907847303,"id":2627,"parentId":2438,"tags":{},"startTime":1733737118212,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":575623,"timestamp":40907800230,"id":2438,"parentId":2433,"tags":{"page":"/404"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":528476,"timestamp":40907848124,"id":2632,"parentId":2443,"tags":{},"startTime":1733737118213,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":576282,"timestamp":40907800342,"id":2443,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/connect"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":529284,"timestamp":40907853360,"id":2656,"parentId":2467,"tags":{},"startTime":1733737118218,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":581797,"timestamp":40907800891,"id":2467,"parentId":2433,"tags":{"page":"/admin/[user_id]/settings"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":529193,"timestamp":40907853702,"id":2658,"parentId":2470,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":581987,"timestamp":40907800934,"id":2470,"parentId":2433,"tags":{"page":"/admin/[user_id]/users/databases/[database]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":529190,"timestamp":40907853874,"id":2659,"parentId":2471,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":582136,"timestamp":40907800947,"id":2471,"parentId":2433,"tags":{"page":"/admin/[user_id]/users/databases"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":530551,"timestamp":40907853040,"id":2654,"parentId":2465,"tags":{},"startTime":1733737118218,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":582747,"timestamp":40907800867,"id":2465,"parentId":2433,"tags":{"page":"/admin/[user_id]/media"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":532393,"timestamp":40907854040,"id":2660,"parentId":2468,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":585552,"timestamp":40907800909,"id":2468,"parentId":2433,"tags":{"page":"/admin/[user_id]/users/add-user"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":535001,"timestamp":40907852855,"id":2653,"parentId":2464,"tags":{},"startTime":1733737118218,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":587029,"timestamp":40907800855,"id":2464,"parentId":2433,"tags":{"page":"/admin/[user_id]/media/[...folder]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":533686,"timestamp":40907854520,"id":2663,"parentId":2595,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":585921,"timestamp":40907802310,"id":2595,"parentId":2433,"tags":{"page":"/blog"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":535009,"timestamp":40907854214,"id":2661,"parentId":2472,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":588298,"timestamp":40907800959,"id":2472,"parentId":2433,"tags":{"page":"/admin/[user_id]/users"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":535309,"timestamp":40907854674,"id":2664,"parentId":2596,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":587685,"timestamp":40907802322,"id":2596,"parentId":2433,"tags":{"page":"/contact"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":546114,"timestamp":40907853526,"id":2657,"parentId":2469,"tags":{},"startTime":1733737118218,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":598754,"timestamp":40907800921,"id":2469,"parentId":2433,"tags":{"page":"/admin/[user_id]/users/databases/[database]/[user]"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":559854,"timestamp":40907847707,"id":2629,"parentId":2440,"tags":{},"startTime":1733737118213,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":607312,"timestamp":40907800288,"id":2440,"parentId":2433,"tags":{"page":"/about"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":560198,"timestamp":40907847559,"id":2628,"parentId":2439,"tags":{},"startTime":1733737118212,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":607515,"timestamp":40907800264,"id":2439,"parentId":2433,"tags":{"page":"/500"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":561612,"timestamp":40907854367,"id":2662,"parentId":2473,"tags":{},"startTime":1733737118219,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":615048,"timestamp":40907800971,"id":2473,"parentId":2433,"tags":{"page":"/admin"},"startTime":1733737118166,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":560430,"timestamp":40907855791,"id":2670,"parentId":2602,"tags":{},"startTime":1733737118221,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":613851,"timestamp":40907802391,"id":2602,"parentId":2433,"tags":{"page":"/"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":568535,"timestamp":40907847849,"id":2630,"parentId":2441,"tags":{},"startTime":1733737118213,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":616095,"timestamp":40907800308,"id":2441,"parentId":2433,"tags":{"page":"/admin/[user_id]/api-keys"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":561114,"timestamp":40907855397,"id":2668,"parentId":2600,"tags":{},"startTime":1733737118220,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":614155,"timestamp":40907802370,"id":2600,"parentId":2433,"tags":{"page":"/docs"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":560975,"timestamp":40907855637,"id":2669,"parentId":2601,"tags":{},"startTime":1733737118220,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":614242,"timestamp":40907802380,"id":2601,"parentId":2433,"tags":{"page":"/email-verification"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":573273,"timestamp":40907856049,"id":2671,"parentId":2603,"tags":{},"startTime":1733737118221,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":626962,"timestamp":40907802403,"id":2603,"parentId":2433,"tags":{"page":"/login"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":573179,"timestamp":40907856395,"id":2673,"parentId":2604,"tags":{},"startTime":1733737118221,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":627175,"timestamp":40907802418,"id":2604,"parentId":2433,"tags":{"page":"/logout"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":573152,"timestamp":40907856547,"id":2674,"parentId":2609,"tags":{},"startTime":1733737118221,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":627237,"timestamp":40907802475,"id":2609,"parentId":2433,"tags":{"page":"/su/backups"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"}] -[{"name":"is-page-static","duration":573942,"timestamp":40907856223,"id":2672,"parentId":2605,"tags":{},"startTime":1733737118221,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":627752,"timestamp":40907802429,"id":2605,"parentId":2433,"tags":{"page":"/privacy"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":577590,"timestamp":40907856725,"id":2675,"parentId":2608,"tags":{},"startTime":1733737118222,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":631885,"timestamp":40907802464,"id":2608,"parentId":2433,"tags":{"page":"/send-password-reset-link"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":595117,"timestamp":40907848889,"id":2635,"parentId":2447,"tags":{},"startTime":1733737118214,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":643609,"timestamp":40907800438,"id":2447,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/shell"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":599935,"timestamp":40907848450,"id":2634,"parentId":2445,"tags":{},"startTime":1733737118213,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":648022,"timestamp":40907800397,"id":2445,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":601159,"timestamp":40907857731,"id":2681,"parentId":2613,"tags":{},"startTime":1733737118223,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":656393,"timestamp":40907802537,"id":2613,"parentId":2433,"tags":{"page":"/su/docs"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":610814,"timestamp":40907848253,"id":2633,"parentId":2444,"tags":{},"startTime":1733737118213,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":658714,"timestamp":40907800369,"id":2444,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/edit-database"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":602090,"timestamp":40907857094,"id":2677,"parentId":2606,"tags":{},"startTime":1733737118222,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":656766,"timestamp":40907802440,"id":2606,"parentId":2433,"tags":{"page":"/redirect"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":603332,"timestamp":40907858069,"id":2683,"parentId":2615,"tags":{},"startTime":1733737118223,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":658863,"timestamp":40907802564,"id":2615,"parentId":2433,"tags":{"page":"/su/docs/pages"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":603953,"timestamp":40907857569,"id":2680,"parentId":2612,"tags":{},"startTime":1733737118222,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":659017,"timestamp":40907802517,"id":2612,"parentId":2433,"tags":{"page":"/su/docs/edit-page"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":605290,"timestamp":40907858615,"id":2686,"parentId":2620,"tags":{},"startTime":1733737118223,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":661138,"timestamp":40907802793,"id":2620,"parentId":2433,"tags":{"page":"/su/login"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":609777,"timestamp":40907857899,"id":2682,"parentId":2614,"tags":{},"startTime":1733737118223,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":665158,"timestamp":40907802550,"id":2614,"parentId":2433,"tags":{"page":"/su/docs/pages/[id]"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":612961,"timestamp":40907855060,"id":2666,"parentId":2597,"tags":{},"startTime":1733737118220,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":665708,"timestamp":40907802334,"id":2597,"parentId":2433,"tags":{"page":"/create-account"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":610754,"timestamp":40907857407,"id":2679,"parentId":2611,"tags":{},"startTime":1733737118222,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":665679,"timestamp":40907802499,"id":2611,"parentId":2433,"tags":{"page":"/su/docs/create-page"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":611279,"timestamp":40907858270,"id":2684,"parentId":2618,"tags":{},"startTime":1733737118223,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":666956,"timestamp":40907802612,"id":2618,"parentId":2433,"tags":{"page":"/su"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":611069,"timestamp":40907858935,"id":2688,"parentId":2622,"tags":{},"startTime":1733737118224,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":667188,"timestamp":40907802835,"id":2622,"parentId":2433,"tags":{"page":"/su/users/[single]"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":612275,"timestamp":40907859087,"id":2689,"parentId":2621,"tags":{},"startTime":1733737118224,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":668562,"timestamp":40907802820,"id":2621,"parentId":2433,"tags":{"page":"/su/servers"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":612620,"timestamp":40907859769,"id":2693,"parentId":2626,"tags":{},"startTime":1733737118225,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":669512,"timestamp":40907802898,"id":2626,"parentId":2433,"tags":{"page":"/unsubscribe"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":614180,"timestamp":40907859236,"id":2690,"parentId":2617,"tags":{},"startTime":1733737118224,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":670838,"timestamp":40907802601,"id":2617,"parentId":2433,"tags":{"page":"/su/error-logs"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":613927,"timestamp":40907859916,"id":2694,"parentId":2624,"tags":{},"startTime":1733737118225,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":670995,"timestamp":40907802872,"id":2624,"parentId":2433,"tags":{"page":"/su/users/new"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":616326,"timestamp":40907858773,"id":2687,"parentId":2616,"tags":{},"startTime":1733737118224,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":672531,"timestamp":40907802587,"id":2616,"parentId":2433,"tags":{"page":"/su/envar"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":621016,"timestamp":40907856945,"id":2676,"parentId":2607,"tags":{},"startTime":1733737118222,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":675541,"timestamp":40907802451,"id":2607,"parentId":2433,"tags":{"page":"/reset-password"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":623486,"timestamp":40907858424,"id":2685,"parentId":2619,"tags":{},"startTime":1733737118223,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":679320,"timestamp":40907802624,"id":2619,"parentId":2433,"tags":{"page":"/su/load-balancing"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":632471,"timestamp":40907849537,"id":2637,"parentId":2448,"tags":{},"startTime":1733737118214,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":681565,"timestamp":40907800453,"id":2448,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":622508,"timestamp":40907859557,"id":2692,"parentId":2625,"tags":{},"startTime":1733737118224,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":679188,"timestamp":40907802887,"id":2625,"parentId":2433,"tags":{"page":"/terms"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":623236,"timestamp":40907859401,"id":2691,"parentId":2623,"tags":{},"startTime":1733737118224,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":679800,"timestamp":40907802856,"id":2623,"parentId":2433,"tags":{"page":"/su/users"},"startTime":1733737118168,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":647351,"timestamp":40907849162,"id":2636,"parentId":2446,"tags":{},"startTime":1733737118214,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":696128,"timestamp":40907800417,"id":2446,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/schema"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":649676,"timestamp":40907849836,"id":2638,"parentId":2449,"tags":{},"startTime":1733737118215,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":699065,"timestamp":40907800474,"id":2449,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":650953,"timestamp":40907850096,"id":2639,"parentId":2451,"tags":{},"startTime":1733737118215,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":700553,"timestamp":40907800518,"id":2451,"parentId":2433,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries"},"startTime":1733737118165,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":660452,"timestamp":40907854868,"id":2665,"parentId":2598,"tags":{},"startTime":1733737118220,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":713086,"timestamp":40907802347,"id":2598,"parentId":2433,"tags":{"page":"/docs/[page]/[sub-page]"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":665184,"timestamp":40907857246,"id":2678,"parentId":2610,"tags":{},"startTime":1733737118222,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":719994,"timestamp":40907802487,"id":2610,"parentId":2433,"tags":{"page":"/su/console"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"is-page-static","duration":676057,"timestamp":40907855235,"id":2667,"parentId":2599,"tags":{},"startTime":1733737118220,"traceId":"abc7307b6d44cd6e"},{"name":"check-page","duration":728972,"timestamp":40907802358,"id":2599,"parentId":2433,"tags":{"page":"/docs/[page]"},"startTime":1733737118167,"traceId":"abc7307b6d44cd6e"},{"name":"static-check","duration":781768,"timestamp":40907749631,"id":2433,"parentId":1,"tags":{},"startTime":1733737118114,"traceId":"abc7307b6d44cd6e"},{"name":"generate-required-server-files","duration":384,"timestamp":40908531528,"id":2696,"parentId":1,"tags":{},"startTime":1733737118896,"traceId":"abc7307b6d44cd6e"},{"name":"write-routes-manifest","duration":14905,"timestamp":40908543823,"id":2698,"parentId":1,"tags":{},"startTime":1733737118909,"traceId":"abc7307b6d44cd6e"},{"name":"load-dotenv","duration":127,"timestamp":40909030069,"id":2701,"parentId":2700,"tags":{},"startTime":1733737119395,"traceId":"abc7307b6d44cd6e"},{"name":"run-export-path-map","duration":352,"timestamp":40910986632,"id":2702,"parentId":2700,"tags":{},"startTime":1733737121351,"traceId":"abc7307b6d44cd6e"},{"name":"next-export","duration":3028195,"timestamp":40909029268,"id":2700,"parentId":1,"tags":{},"startTime":1733737119394,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":77668,"timestamp":40912240820,"id":2703,"parentId":2699,"tags":{},"startTime":1733737122606,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":73271,"timestamp":40912318553,"id":2704,"parentId":2699,"tags":{},"startTime":1733737122683,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":63858,"timestamp":40912391879,"id":2705,"parentId":2699,"tags":{},"startTime":1733737122757,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":60176,"timestamp":40912455810,"id":2706,"parentId":2699,"tags":{},"startTime":1733737122821,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":80782,"timestamp":40912516044,"id":2707,"parentId":2699,"tags":{},"startTime":1733737122881,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":85067,"timestamp":40912596879,"id":2708,"parentId":2699,"tags":{},"startTime":1733737122962,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":157189,"timestamp":40912682007,"id":2709,"parentId":2699,"tags":{},"startTime":1733737123047,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":34223,"timestamp":40912839262,"id":2710,"parentId":2699,"tags":{},"startTime":1733737123204,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":199431,"timestamp":40912873543,"id":2711,"parentId":2699,"tags":{},"startTime":1733737123238,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":30084,"timestamp":40913073080,"id":2712,"parentId":2699,"tags":{},"startTime":1733737123438,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":20013,"timestamp":40913103182,"id":2713,"parentId":2699,"tags":{},"startTime":1733737123468,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":32751,"timestamp":40913123266,"id":2714,"parentId":2699,"tags":{},"startTime":1733737123488,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":45853,"timestamp":40913156040,"id":2715,"parentId":2699,"tags":{},"startTime":1733737123521,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":10503,"timestamp":40913201947,"id":2716,"parentId":2699,"tags":{},"startTime":1733737123567,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":16376,"timestamp":40913212464,"id":2717,"parentId":2699,"tags":{},"startTime":1733737123577,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":12729,"timestamp":40913228898,"id":2718,"parentId":2699,"tags":{},"startTime":1733737123594,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":97481,"timestamp":40913241643,"id":2719,"parentId":2699,"tags":{},"startTime":1733737123606,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":10803,"timestamp":40913339188,"id":2720,"parentId":2699,"tags":{},"startTime":1733737123704,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":306575,"timestamp":40913350008,"id":2721,"parentId":2699,"tags":{},"startTime":1733737123715,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":20722,"timestamp":40913656642,"id":2722,"parentId":2699,"tags":{},"startTime":1733737124021,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":262425,"timestamp":40913677379,"id":2723,"parentId":2699,"tags":{},"startTime":1733737124042,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":15659,"timestamp":40913939898,"id":2724,"parentId":2699,"tags":{},"startTime":1733737124305,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":41580,"timestamp":40913955574,"id":2725,"parentId":2699,"tags":{},"startTime":1733737124320,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":45490,"timestamp":40913997219,"id":2726,"parentId":2699,"tags":{},"startTime":1733737124362,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":59044,"timestamp":40914042732,"id":2727,"parentId":2699,"tags":{},"startTime":1733737124408,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":81488,"timestamp":40914101842,"id":2728,"parentId":2699,"tags":{},"startTime":1733737124467,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":46126,"timestamp":40914183351,"id":2729,"parentId":2699,"tags":{},"startTime":1733737124548,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":21716,"timestamp":40914229568,"id":2730,"parentId":2699,"tags":{},"startTime":1733737124594,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":22264,"timestamp":40914251303,"id":2731,"parentId":2699,"tags":{},"startTime":1733737124616,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":22075,"timestamp":40914273642,"id":2732,"parentId":2699,"tags":{},"startTime":1733737124638,"traceId":"abc7307b6d44cd6e"},{"name":"move-exported-page","duration":30549,"timestamp":40914295732,"id":2733,"parentId":2699,"tags":{},"startTime":1733737124661,"traceId":"abc7307b6d44cd6e"},{"name":"static-generation","duration":6250826,"timestamp":40909026236,"id":2699,"parentId":1,"tags":{},"startTime":1733737119391,"traceId":"abc7307b6d44cd6e"},{"name":"node-file-trace-build","duration":11279014,"timestamp":40908533297,"id":2697,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1733737118898,"traceId":"abc7307b6d44cd6e"}] -[{"name":"apply-include-excludes","duration":1126,"timestamp":40919812557,"id":2734,"parentId":1,"tags":{},"startTime":1733737130177,"traceId":"abc7307b6d44cd6e"},{"name":"print-tree-view","duration":8077,"timestamp":40919813766,"id":2735,"parentId":1,"tags":{},"startTime":1733737130179,"traceId":"abc7307b6d44cd6e"},{"name":"telemetry-flush","duration":66,"timestamp":40919821864,"id":2736,"parentId":1,"tags":{},"startTime":1733737130187,"traceId":"abc7307b6d44cd6e"},{"name":"next-build","duration":41696923,"timestamp":40878125014,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"15.0.3","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1733737088490,"traceId":"abc7307b6d44cd6e"}] +[{"name":"generate-buildid","duration":174,"timestamp":49375548605,"id":4,"parentId":1,"tags":{},"startTime":1733747119451,"traceId":"a901697cbe7cbd9f"},{"name":"load-custom-routes","duration":235,"timestamp":49375548874,"id":5,"parentId":1,"tags":{},"startTime":1733747119451,"traceId":"a901697cbe7cbd9f"},{"name":"create-dist-dir","duration":42383,"timestamp":49375606849,"id":6,"parentId":1,"tags":{},"startTime":1733747119509,"traceId":"a901697cbe7cbd9f"},{"name":"verify-typescript-setup","duration":193618,"timestamp":49375650064,"id":7,"parentId":1,"tags":{},"startTime":1733747119553,"traceId":"a901697cbe7cbd9f"},{"name":"collect-pages","duration":12717,"timestamp":49375843957,"id":8,"parentId":1,"tags":{},"startTime":1733747119747,"traceId":"a901697cbe7cbd9f"},{"name":"create-pages-mapping","duration":1509,"timestamp":49375857885,"id":9,"parentId":1,"tags":{},"startTime":1733747119760,"traceId":"a901697cbe7cbd9f"},{"name":"public-dir-conflict-check","duration":6859,"timestamp":49375859565,"id":10,"parentId":1,"tags":{},"startTime":1733747119762,"traceId":"a901697cbe7cbd9f"},{"name":"generate-routes-manifest","duration":3907,"timestamp":49375866623,"id":11,"parentId":1,"tags":{},"startTime":1733747119769,"traceId":"a901697cbe7cbd9f"},{"name":"create-entrypoints","duration":111325,"timestamp":49375875488,"id":14,"parentId":1,"tags":{},"startTime":1733747119778,"traceId":"a901697cbe7cbd9f"},{"name":"generate-webpack-config","duration":228101,"timestamp":49375986872,"id":15,"parentId":13,"tags":{},"startTime":1733747119889,"traceId":"a901697cbe7cbd9f"},{"name":"next-trace-entrypoint-plugin","duration":1917,"timestamp":49376298501,"id":17,"parentId":16,"tags":{},"startTime":1733747120201,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":92881,"timestamp":49376465825,"id":211,"parentId":20,"tags":{"name":"/app/pages/_document.js","layer":null},"startTime":1733747120368,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":111684,"timestamp":49376468040,"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.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120371,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":112389,"timestamp":49376469687,"id":213,"parentId":21,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120372,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":114135,"timestamp":49376469857,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120372,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":115131,"timestamp":49376470012,"id":215,"parentId":23,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120373,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":115276,"timestamp":49376470551,"id":216,"parentId":24,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120373,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":115878,"timestamp":49376470707,"id":217,"parentId":25,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120373,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":116449,"timestamp":49376470832,"id":218,"parentId":26,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120373,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":31015,"timestamp":49376562306,"id":219,"parentId":27,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120465,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":31512,"timestamp":49376562740,"id":220,"parentId":28,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120465,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":31918,"timestamp":49376563010,"id":221,"parentId":29,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":32579,"timestamp":49376563163,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":33276,"timestamp":49376563336,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":33869,"timestamp":49376563465,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":34506,"timestamp":49376563589,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":35213,"timestamp":49376563694,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":35751,"timestamp":49376563845,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120466,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":36301,"timestamp":49376563964,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":36861,"timestamp":49376564073,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":37408,"timestamp":49376564210,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":37794,"timestamp":49376564319,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":38250,"timestamp":49376564418,"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%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":38670,"timestamp":49376564528,"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%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":39024,"timestamp":49376564619,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":39376,"timestamp":49376564716,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":39688,"timestamp":49376564813,"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%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120467,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":39956,"timestamp":49376564945,"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%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":40238,"timestamp":49376565044,"id":238,"parentId":46,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":40530,"timestamp":49376565143,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":40888,"timestamp":49376565227,"id":240,"parentId":48,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":41197,"timestamp":49376565322,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":41513,"timestamp":49376565404,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":41990,"timestamp":49376565481,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":42335,"timestamp":49376565561,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":42740,"timestamp":49376565650,"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%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":43176,"timestamp":49376565728,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":43735,"timestamp":49376565806,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120468,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":44126,"timestamp":49376565955,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":44500,"timestamp":49376566056,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":44855,"timestamp":49376566231,"id":251,"parentId":59,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":45402,"timestamp":49376566147,"id":250,"parentId":58,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":45686,"timestamp":49376566318,"id":252,"parentId":60,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":46012,"timestamp":49376566418,"id":253,"parentId":61,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":46371,"timestamp":49376566497,"id":254,"parentId":62,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":46772,"timestamp":49376566576,"id":255,"parentId":63,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":47159,"timestamp":49376566656,"id":256,"parentId":64,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":47593,"timestamp":49376566741,"id":257,"parentId":65,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":48033,"timestamp":49376566818,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":48408,"timestamp":49376566899,"id":259,"parentId":67,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120469,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":48810,"timestamp":49376566980,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":49183,"timestamp":49376567076,"id":261,"parentId":69,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":49501,"timestamp":49376567158,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":49790,"timestamp":49376567236,"id":263,"parentId":71,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":50034,"timestamp":49376567320,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":50283,"timestamp":49376567415,"id":265,"parentId":73,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":50550,"timestamp":49376567493,"id":266,"parentId":74,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":50811,"timestamp":49376567573,"id":267,"parentId":75,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":51053,"timestamp":49376567658,"id":268,"parentId":76,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":51303,"timestamp":49376567750,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":51632,"timestamp":49376567830,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120470,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":51906,"timestamp":49376567931,"id":271,"parentId":79,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":52156,"timestamp":49376568017,"id":272,"parentId":80,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":52375,"timestamp":49376568114,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":52604,"timestamp":49376568196,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":52856,"timestamp":49376568275,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":53130,"timestamp":49376568357,"id":276,"parentId":84,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":53363,"timestamp":49376568467,"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%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":53590,"timestamp":49376568578,"id":278,"parentId":86,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":53825,"timestamp":49376568664,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":54054,"timestamp":49376568749,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":54316,"timestamp":49376568853,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120471,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":54600,"timestamp":49376568951,"id":282,"parentId":90,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":54860,"timestamp":49376569040,"id":283,"parentId":91,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":55110,"timestamp":49376569137,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":55347,"timestamp":49376569241,"id":285,"parentId":93,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":55604,"timestamp":49376569334,"id":286,"parentId":94,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":55804,"timestamp":49376569541,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":56076,"timestamp":49376569656,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":56372,"timestamp":49376569763,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":56663,"timestamp":49376569855,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120472,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":56941,"timestamp":49376569939,"id":291,"parentId":99,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":57206,"timestamp":49376570026,"id":292,"parentId":100,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":57478,"timestamp":49376570119,"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%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":57742,"timestamp":49376570204,"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%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":58032,"timestamp":49376570284,"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%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":58308,"timestamp":49376570368,"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%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":58587,"timestamp":49376570471,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":58892,"timestamp":49376570553,"id":298,"parentId":106,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":59181,"timestamp":49376570638,"id":299,"parentId":107,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":59436,"timestamp":49376570720,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module","duration":59843,"timestamp":49376570815,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":60096,"timestamp":49376570897,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120473,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":60335,"timestamp":49376570979,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120474,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":60479,"timestamp":49376571187,"id":304,"parentId":112,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120474,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":60729,"timestamp":49376571281,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120474,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":60997,"timestamp":49376571355,"id":306,"parentId":114,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120474,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":61242,"timestamp":49376571426,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120474,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":68247,"timestamp":49376574423,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120477,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12081,"timestamp":49376710557,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12295,"timestamp":49376710771,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":9731,"timestamp":49376716104,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10010,"timestamp":49376716237,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10300,"timestamp":49376716308,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10590,"timestamp":49376716375,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10898,"timestamp":49376716434,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11276,"timestamp":49376716497,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11608,"timestamp":49376716556,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11905,"timestamp":49376716612,"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%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12199,"timestamp":49376716673,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12513,"timestamp":49376716728,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12853,"timestamp":49376716783,"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%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13146,"timestamp":49376716846,"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%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13431,"timestamp":49376716901,"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%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120619,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":14869,"timestamp":49376718584,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15103,"timestamp":49376718676,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15340,"timestamp":49376718744,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15610,"timestamp":49376718805,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":16205,"timestamp":49376718870,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":16745,"timestamp":49376718938,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17307,"timestamp":49376719006,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":4607,"timestamp":49376753440,"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%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120656,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":5155,"timestamp":49376753629,"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%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120656,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":5831,"timestamp":49376753717,"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%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120656,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":6582,"timestamp":49376753805,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120656,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7190,"timestamp":49376753906,"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%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120656,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12877,"timestamp":49376756433,"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%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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13444,"timestamp":49376756550,"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%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":14128,"timestamp":49376756639,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":14893,"timestamp":49376756711,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":6624,"timestamp":49376777571,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120680,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7140,"timestamp":49376777779,"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%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120680,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7786,"timestamp":49376777873,"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%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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120680,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":8375,"timestamp":49376777966,"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%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":8913,"timestamp":49376778045,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":9561,"timestamp":49376778123,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10214,"timestamp":49376778205,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10981,"timestamp":49376778278,"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%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11658,"timestamp":49376778350,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12410,"timestamp":49376778438,"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%2F%5Bsingle%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120681,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":16911,"timestamp":49376779897,"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%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120682,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17549,"timestamp":49376780012,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":18047,"timestamp":49376780198,"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%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":18753,"timestamp":49376780114,"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%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":19240,"timestamp":49376780275,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":19786,"timestamp":49376780356,"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%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":20458,"timestamp":49376780427,"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%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":23770,"timestamp":49376780498,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120683,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":29790,"timestamp":49376781465,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120684,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":33733,"timestamp":49376782729,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120685,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":34316,"timestamp":49376782825,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120685,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":34937,"timestamp":49376782897,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120685,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7157,"timestamp":49376831690,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120734,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7303,"timestamp":49376831886,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120734,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7517,"timestamp":49376831973,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7722,"timestamp":49376832045,"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.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":7978,"timestamp":49376832113,"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%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":8221,"timestamp":49376832184,"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%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":8585,"timestamp":49376832248,"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%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":8901,"timestamp":49376832313,"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%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.js&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":9473,"timestamp":49376832382,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10015,"timestamp":49376832450,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":10572,"timestamp":49376832525,"id":372,"parentId":181,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11291,"timestamp":49376832595,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11869,"timestamp":49376832658,"id":374,"parentId":183,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12419,"timestamp":49376832720,"id":375,"parentId":184,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12887,"timestamp":49376832789,"id":376,"parentId":185,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13337,"timestamp":49376832851,"id":377,"parentId":186,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120735,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13807,"timestamp":49376832914,"id":378,"parentId":187,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":14290,"timestamp":49376832981,"id":379,"parentId":188,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":14733,"timestamp":49376833043,"id":380,"parentId":189,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15175,"timestamp":49376833106,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15672,"timestamp":49376833168,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":16198,"timestamp":49376833265,"id":383,"parentId":192,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":16709,"timestamp":49376833382,"id":384,"parentId":193,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17217,"timestamp":49376833452,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120736,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":22343,"timestamp":49376835020,"id":386,"parentId":195,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120738,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":25507,"timestamp":49376835119,"id":387,"parentId":196,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120738,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":26218,"timestamp":49376835188,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120738,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":31809,"timestamp":49376836203,"id":389,"parentId":198,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120739,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":32409,"timestamp":49376836369,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120739,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":33264,"timestamp":49376836295,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120739,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":33754,"timestamp":49376836447,"id":392,"parentId":201,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120739,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":242,"timestamp":49376897001,"id":402,"parentId":211,"tags":{"name":"react/jsx-runtime","layer":null},"startTime":1733747120800,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":21,"timestamp":49376897278,"id":403,"parentId":211,"tags":{"name":"react","layer":null},"startTime":1733747120800,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5406,"timestamp":49376897316,"id":404,"parentId":136,"tags":{"name":"/app/pages/_app.js","layer":null},"startTime":1733747120800,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":11752,"timestamp":49376892420,"id":393,"parentId":202,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120795,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12265,"timestamp":49376892686,"id":394,"parentId":203,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120795,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12825,"timestamp":49376892795,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120795,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13417,"timestamp":49376892895,"id":396,"parentId":205,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120795,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13805,"timestamp":49376893109,"id":397,"parentId":206,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120796,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":14384,"timestamp":49376893215,"id":398,"parentId":207,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120796,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module","duration":20122,"timestamp":49376896588,"id":399,"parentId":208,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120799,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":20703,"timestamp":49376896715,"id":400,"parentId":209,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120799,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":21197,"timestamp":49376896807,"id":401,"parentId":210,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1733747120799,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21526,"timestamp":49376897394,"id":405,"parentId":211,"tags":{"name":"/app/node_modules/next/document.js","layer":null},"startTime":1733747120800,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22802,"timestamp":49376897444,"id":406,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":null},"startTime":1733747120800,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23306,"timestamp":49376897481,"id":407,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":"api"},"startTime":1733747120800,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":27341,"timestamp":49376899377,"id":409,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":null},"startTime":1733747120802,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28108,"timestamp":49376899436,"id":410,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":"api"},"startTime":1733747120802,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":29062,"timestamp":49376899571,"id":411,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/module.compiled.js","layer":null},"startTime":1733747120802,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":29702,"timestamp":49376899632,"id":412,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js","layer":"api"},"startTime":1733747120802,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":36563,"timestamp":49376897960,"id":408,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1733747120801,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5757,"timestamp":49376944112,"id":415,"parentId":215,"tags":{"name":"/app/pages/api/addAdminUserUser.js","layer":"api"},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8889,"timestamp":49376944158,"id":416,"parentId":216,"tags":{"name":"/app/pages/api/addApiKey.js","layer":"api"},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10429,"timestamp":49376944051,"id":414,"parentId":213,"tags":{"name":"/app/pages/404.jsx","layer":null},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12280,"timestamp":49376943914,"id":413,"parentId":214,"tags":{"name":"/app/pages/500.jsx","layer":null},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19909,"timestamp":49376944245,"id":418,"parentId":218,"tags":{"name":"/app/pages/api/addNewMediaFolder.js","layer":"api"},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22032,"timestamp":49376944283,"id":419,"parentId":219,"tags":{"name":"/app/pages/api/addDbUser.js","layer":"api"},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25130,"timestamp":49376944203,"id":417,"parentId":217,"tags":{"name":"/app/pages/api/acceptUserInvitation.js","layer":"api"},"startTime":1733747120847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5349,"timestamp":49376985894,"id":420,"parentId":220,"tags":{"name":"/app/pages/api/addTableEntry.js","layer":"api"},"startTime":1733747120888,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7493,"timestamp":49376986098,"id":423,"parentId":223,"tags":{"name":"/app/pages/api/addUserUser.js","layer":"api"},"startTime":1733747120889,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10149,"timestamp":49376986003,"id":421,"parentId":221,"tags":{"name":"/app/pages/api/addSocialLogin.js","layer":"api"},"startTime":1733747120889,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14423,"timestamp":49376986055,"id":422,"parentId":222,"tags":{"name":"/app/pages/api/addUsersTableToDatabase.js","layer":"api"},"startTime":1733747120889,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19230,"timestamp":49376986154,"id":424,"parentId":224,"tags":{"name":"/app/pages/api/addUserTable.js","layer":"api"},"startTime":1733747120889,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5991,"timestamp":49377027464,"id":425,"parentId":225,"tags":{"name":"/app/pages/api/admin/addUserBackup.js","layer":"api"},"startTime":1733747120930,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4142,"timestamp":49377033965,"id":428,"parentId":228,"tags":{"name":"/app/pages/api/admin/clientError.js","layer":"api"},"startTime":1733747120937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5154,"timestamp":49377034011,"id":429,"parentId":230,"tags":{"name":"/app/pages/api/admin/getTablesForUserDatabase.js","layer":"api"},"startTime":1733747120937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5998,"timestamp":49377033760,"id":426,"parentId":226,"tags":{"name":"/app/pages/api/admin/clearErrorLogs.js","layer":"api"},"startTime":1733747120936,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7408,"timestamp":49377033896,"id":427,"parentId":227,"tags":{"name":"/app/pages/api/admin/createNewBackup.js","layer":"api"},"startTime":1733747120936,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8005,"timestamp":49377034091,"id":431,"parentId":232,"tags":{"name":"/app/pages/api/admin/grabBackups.js","layer":"api"},"startTime":1733747120937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9811,"timestamp":49377034049,"id":430,"parentId":231,"tags":{"name":"/app/pages/api/admin/getUserBackups.js","layer":"api"},"startTime":1733747120937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10755,"timestamp":49377034163,"id":433,"parentId":234,"tags":{"name":"/app/pages/api/admin/grabErrorLogs.js","layer":"api"},"startTime":1733747120937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":16591,"timestamp":49377034128,"id":432,"parentId":233,"tags":{"name":"/app/pages/api/admin/getUserData.js","layer":"api"},"startTime":1733747120937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3907,"timestamp":49377056885,"id":434,"parentId":235,"tags":{"name":"/app/pages/api/admin/grabFile.js","layer":"api"},"startTime":1733747120959,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5711,"timestamp":49377056994,"id":435,"parentId":229,"tags":{"name":"/app/pages/api/admin/docs/[action].js","layer":"api"},"startTime":1733747120960,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6889,"timestamp":49377057050,"id":436,"parentId":238,"tags":{"name":"/app/pages/api/changeDbUserPassword.js","layer":"api"},"startTime":1733747120960,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7693,"timestamp":49377057091,"id":437,"parentId":239,"tags":{"name":"/app/pages/api/checkDuplicateData.js","layer":"api"},"startTime":1733747120960,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8190,"timestamp":49377058873,"id":438,"parentId":241,"tags":{"name":"/app/pages/api/checkExistingFolder.js","layer":"api"},"startTime":1733747120961,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2001,"timestamp":49377072013,"id":439,"parentId":242,"tags":{"name":"/app/pages/api/clientSideAuth.js","layer":"api"},"startTime":1733747120975,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2985,"timestamp":49377072109,"id":440,"parentId":236,"tags":{"name":"/app/pages/api/admin/runUserDbQuery.js","layer":"api"},"startTime":1733747120975,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2701,"timestamp":49377077798,"id":442,"parentId":237,"tags":{"name":"/app/pages/api/admin/updateEnv.js","layer":"api"},"startTime":1733747120980,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3721,"timestamp":49377077898,"id":444,"parentId":249,"tags":{"name":"/app/pages/api/deleteApiKey.js","layer":"api"},"startTime":1733747120980,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5638,"timestamp":49377077853,"id":443,"parentId":240,"tags":{"name":"/app/pages/api/admin/loginSuUser.js","layer":"api"},"startTime":1733747120980,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6690,"timestamp":49377077692,"id":441,"parentId":247,"tags":{"name":"/app/pages/api/contact.js","layer":"api"},"startTime":1733747120980,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7570,"timestamp":49377077932,"id":445,"parentId":248,"tags":{"name":"/app/pages/api/deleteDbUser.js","layer":"api"},"startTime":1733747120981,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7406,"timestamp":49377078884,"id":446,"parentId":252,"tags":{"name":"/app/pages/api/deleteTableEntry.js","layer":"api"},"startTime":1733747120981,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9329,"timestamp":49377078947,"id":447,"parentId":251,"tags":{"name":"/app/pages/api/createUserDatabase.js","layer":"api"},"startTime":1733747120982,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2654,"timestamp":49377101222,"id":448,"parentId":250,"tags":{"name":"/app/pages/api/deleteInvitation.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4050,"timestamp":49377101373,"id":450,"parentId":254,"tags":{"name":"/app/pages/api/deleteUserDatabase.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6065,"timestamp":49377101409,"id":451,"parentId":255,"tags":{"name":"/app/pages/api/deleteUserMedia.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7845,"timestamp":49377101327,"id":449,"parentId":253,"tags":{"name":"/app/pages/api/deleteUser.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8682,"timestamp":49377101477,"id":453,"parentId":258,"tags":{"name":"/app/pages/api/downloadDatabaseSchema.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9465,"timestamp":49377101537,"id":455,"parentId":257,"tags":{"name":"/app/pages/api/deleteUserUser.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12035,"timestamp":49377101442,"id":452,"parentId":256,"tags":{"name":"/app/pages/api/deleteUserTable.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12449,"timestamp":49377101567,"id":456,"parentId":260,"tags":{"name":"/app/pages/api/exportDatabase.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14117,"timestamp":49377101509,"id":454,"parentId":259,"tags":{"name":"/app/pages/api/deleteMediaFolder.js","layer":"api"},"startTime":1733747121004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6181,"timestamp":49377124661,"id":459,"parentId":263,"tags":{"name":"/app/pages/api/fetch-entries-basic.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7087,"timestamp":49377124766,"id":460,"parentId":264,"tags":{"name":"/app/pages/api/getDelegatedDatabaseToken.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8022,"timestamp":49377124566,"id":458,"parentId":262,"tags":{"name":"/app/pages/api/getDatabaseTables.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9229,"timestamp":49377124405,"id":457,"parentId":261,"tags":{"name":"/app/pages/api/get-authorized-databases.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9336,"timestamp":49377124863,"id":462,"parentId":266,"tags":{"name":"/app/pages/api/getUserDatabases.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9792,"timestamp":49377124944,"id":464,"parentId":268,"tags":{"name":"/app/pages/api/getUserDatabaseTables.js","layer":"api"},"startTime":1733747121028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10171,"timestamp":49377124979,"id":465,"parentId":269,"tags":{"name":"/app/pages/api/getUserMedia.js","layer":"api"},"startTime":1733747121028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11098,"timestamp":49377124900,"id":463,"parentId":267,"tags":{"name":"/app/pages/api/getDelegatedDatabases.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12866,"timestamp":49377125016,"id":466,"parentId":270,"tags":{"name":"/app/pages/api/getUserSchemaData.js","layer":"api"},"startTime":1733747121028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13132,"timestamp":49377125061,"id":467,"parentId":272,"tags":{"name":"/app/pages/api/healthcheck.js","layer":"api"},"startTime":1733747121028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15115,"timestamp":49377124821,"id":461,"parentId":265,"tags":{"name":"/app/pages/api/getDiskUsage.js","layer":"api"},"startTime":1733747121027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17340,"timestamp":49377129007,"id":468,"parentId":271,"tags":{"name":"/app/pages/api/importDatabase.js","layer":"api"},"startTime":1733747121032,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3897,"timestamp":49377153998,"id":472,"parentId":245,"tags":{"name":"/app/pages/api/connect/verify.js","layer":"api"},"startTime":1733747121057,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4787,"timestamp":49377153906,"id":470,"parentId":244,"tags":{"name":"/app/pages/api/connect/handshake.js","layer":"api"},"startTime":1733747121056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6307,"timestamp":49377153953,"id":471,"parentId":246,"tags":{"name":"/app/pages/api/connect/index.js","layer":"api"},"startTime":1733747121057,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7237,"timestamp":49377153805,"id":469,"parentId":243,"tags":{"name":"/app/pages/api/connect/disconnect.js","layer":"api"},"startTime":1733747121056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8759,"timestamp":49377155429,"id":473,"parentId":273,"tags":{"name":"/app/pages/api/importDatabaseSchema.js","layer":"api"},"startTime":1733747121058,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9926,"timestamp":49377155496,"id":474,"parentId":274,"tags":{"name":"/app/pages/api/infiniteScroll.js","layer":"api"},"startTime":1733747121058,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4128,"timestamp":49377178929,"id":476,"parentId":278,"tags":{"name":"/app/pages/api/logoutUser.js","layer":"api"},"startTime":1733747121082,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6114,"timestamp":49377178809,"id":475,"parentId":275,"tags":{"name":"/app/pages/api/loginUser.js","layer":"api"},"startTime":1733747121081,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8092,"timestamp":49377185275,"id":477,"parentId":279,"tags":{"name":"/app/pages/api/purgeDb.js","layer":"api"},"startTime":1733747121088,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5181,"timestamp":49377194773,"id":479,"parentId":284,"tags":{"name":"/app/pages/api/reAuthenticateUser.js","layer":"api"},"startTime":1733747121097,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6112,"timestamp":49377194665,"id":478,"parentId":282,"tags":{"name":"/app/pages/api/queryEntriesSearchTerm.js","layer":"api"},"startTime":1733747121097,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7141,"timestamp":49377194866,"id":481,"parentId":287,"tags":{"name":"/app/pages/api/renameMedia.js","layer":"api"},"startTime":1733747121097,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9038,"timestamp":49377194931,"id":483,"parentId":288,"tags":{"name":"/app/pages/api/resetDelegatedDatabaseToken.js","layer":"api"},"startTime":1733747121098,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9531,"timestamp":49377194991,"id":484,"parentId":289,"tags":{"name":"/app/pages/api/resetPassword.js","layer":"api"},"startTime":1733747121098,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11578,"timestamp":49377194828,"id":480,"parentId":285,"tags":{"name":"/app/pages/api/registerUser.js","layer":"api"},"startTime":1733747121097,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12247,"timestamp":49377194899,"id":482,"parentId":286,"tags":{"name":"/app/pages/api/refreshEntry.js","layer":"api"},"startTime":1733747121097,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12760,"timestamp":49377195028,"id":485,"parentId":290,"tags":{"name":"/app/pages/api/runUserDbQuery.js","layer":"api"},"startTime":1733747121098,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14330,"timestamp":49377195112,"id":487,"parentId":292,"tags":{"name":"/app/pages/api/sendEmailVerificationLink.js","layer":"api"},"startTime":1733747121098,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15194,"timestamp":49377195058,"id":486,"parentId":291,"tags":{"name":"/app/pages/api/sendPasswordResetLink.js","layer":"api"},"startTime":1733747121098,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22381,"timestamp":49377195148,"id":488,"parentId":276,"tags":{"name":"/app/pages/api/media/addPrivateMedia.js","layer":"api"},"startTime":1733747121098,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6616,"timestamp":49377224816,"id":489,"parentId":277,"tags":{"name":"/app/pages/api/media/getPrivateMedia.js","layer":"api"},"startTime":1733747121127,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6944,"timestamp":49377225055,"id":491,"parentId":304,"tags":{"name":"/app/pages/api/unsubscribe.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7694,"timestamp":49377225152,"id":492,"parentId":293,"tags":{"name":"/app/pages/api/social-login/google-auth.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9125,"timestamp":49377224973,"id":490,"parentId":303,"tags":{"name":"/app/pages/api/sync-table-data.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9445,"timestamp":49377225209,"id":493,"parentId":294,"tags":{"name":"/app/pages/api/social-login/facebook-auth.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10397,"timestamp":49377225299,"id":495,"parentId":308,"tags":{"name":"/app/pages/api/updateClonedTableForeignKeys.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11115,"timestamp":49377225341,"id":496,"parentId":307,"tags":{"name":"/app/pages/api/updateAdminUserAccess.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11970,"timestamp":49377225255,"id":494,"parentId":299,"tags":{"name":"/app/pages/api/social-login/github-auth.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12242,"timestamp":49377225390,"id":497,"parentId":295,"tags":{"name":"/app/pages/api/social-login/utils/checkEmail.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12736,"timestamp":49377225435,"id":498,"parentId":296,"tags":{"name":"/app/pages/api/social-login/utils/getEmailFromSocialId.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13016,"timestamp":49377225475,"id":499,"parentId":297,"tags":{"name":"/app/pages/api/social-login/utils/checkSocialId.js","layer":"api"},"startTime":1733747121128,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":42,"timestamp":49377252155,"id":524,"parentId":411,"tags":{"name":"next/dist/compiled/next-server/pages.runtime.prod.js","layer":null},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15,"timestamp":49377252222,"id":525,"parentId":412,"tags":{"name":"next/dist/compiled/next-server/pages-api.runtime.prod.js","layer":null},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":12,"timestamp":49377252248,"id":526,"parentId":416,"tags":{"name":"fs","layer":null},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module","duration":21,"timestamp":49377252637,"id":527,"parentId":416,"tags":{"name":"path","layer":null},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13,"timestamp":49377252678,"id":528,"parentId":416,"tags":{"name":"child_process","layer":null},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13485,"timestamp":49377251320,"id":501,"parentId":300,"tags":{"name":"/app/pages/api/sql-users/delete.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14357,"timestamp":49377251370,"id":502,"parentId":301,"tags":{"name":"/app/pages/api/sql-users/update.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15363,"timestamp":49377251212,"id":500,"parentId":298,"tags":{"name":"/app/pages/api/sql-users/create.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17526,"timestamp":49377251409,"id":503,"parentId":280,"tags":{"name":"/app/pages/api/query/[user_id]/get-schema.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17965,"timestamp":49377251517,"id":506,"parentId":302,"tags":{"name":"/app/pages/api/stream/[path].js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18849,"timestamp":49377251451,"id":504,"parentId":281,"tags":{"name":"/app/pages/api/query/[user_id]/get.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19518,"timestamp":49377251485,"id":505,"parentId":283,"tags":{"name":"/app/pages/api/query/[user_id]/update-schema-from-single-database.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20228,"timestamp":49377251549,"id":507,"parentId":309,"tags":{"name":"/app/pages/api/updateDbSchemaDataForUser.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20757,"timestamp":49377251588,"id":508,"parentId":310,"tags":{"name":"/app/pages/api/updateDbUser.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20933,"timestamp":49377251654,"id":510,"parentId":306,"tags":{"name":"/app/pages/api/test/cors.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21272,"timestamp":49377251623,"id":509,"parentId":305,"tags":{"name":"/app/pages/api/test/mail.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21968,"timestamp":49377251686,"id":511,"parentId":312,"tags":{"name":"/app/pages/api/updateUser.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22567,"timestamp":49377251808,"id":514,"parentId":315,"tags":{"name":"/app/pages/api/updateUserUser.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23724,"timestamp":49377251725,"id":512,"parentId":311,"tags":{"name":"/app/pages/api/updateTableEntry.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25220,"timestamp":49377251775,"id":513,"parentId":314,"tags":{"name":"/app/pages/api/updateUserTable.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25936,"timestamp":49377251877,"id":516,"parentId":328,"tags":{"name":"/app/pages/about.jsx","layer":null},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26847,"timestamp":49377251910,"id":517,"parentId":316,"tags":{"name":"/app/pages/api/user-schema/replace-database-schema.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28201,"timestamp":49377251839,"id":515,"parentId":313,"tags":{"name":"/app/pages/api/updateUserDatabase.js","layer":"api"},"startTime":1733747121154,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28629,"timestamp":49377251941,"id":518,"parentId":317,"tags":{"name":"/app/pages/api/user/[user_id]/delete-user.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":29112,"timestamp":49377251985,"id":519,"parentId":318,"tags":{"name":"/app/pages/api/user/[user_id]/add-user.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":29641,"timestamp":49377252019,"id":520,"parentId":319,"tags":{"name":"/app/pages/api/user/[user_id]/get-user.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":30163,"timestamp":49377252085,"id":522,"parentId":321,"tags":{"name":"/app/pages/api/user/[user_id]/login-user.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":30710,"timestamp":49377252053,"id":521,"parentId":320,"tags":{"name":"/app/pages/api/user/[user_id]/github-login.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":31115,"timestamp":49377252121,"id":523,"parentId":322,"tags":{"name":"/app/pages/api/user/[user_id]/google-login.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":31071,"timestamp":49377252704,"id":529,"parentId":323,"tags":{"name":"/app/pages/api/user/[user_id]/grab-google-user-from-token.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":31575,"timestamp":49377252761,"id":530,"parentId":325,"tags":{"name":"/app/pages/api/user/[user_id]/send-email-code.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":32027,"timestamp":49377252809,"id":531,"parentId":324,"tags":{"name":"/app/pages/api/user/[user_id]/reauth-user.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":32557,"timestamp":49377252846,"id":532,"parentId":326,"tags":{"name":"/app/pages/api/user/[user_id]/update-user.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34210,"timestamp":49377252910,"id":533,"parentId":327,"tags":{"name":"/app/pages/api/webhooks/github-push.js","layer":"api"},"startTime":1733747121155,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35465,"timestamp":49377252997,"id":535,"parentId":329,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.jsx","layer":null},"startTime":1733747121156,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":980762,"timestamp":49376308089,"id":80,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":980887,"timestamp":49376308197,"id":114,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":982247,"timestamp":49376308185,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":118,"timestamp":49377334454,"id":552,"parentId":416,"tags":{"name":"generate-password","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13155,"timestamp":49377333797,"id":536,"parentId":330,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.jsx","layer":null},"startTime":1733747121236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13992,"timestamp":49377333952,"id":538,"parentId":333,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15064,"timestamp":49377333908,"id":537,"parentId":331,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.jsx","layer":null},"startTime":1733747121236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":111201,"timestamp":49377252945,"id":534,"parentId":405,"tags":{"name":"/app/node_modules/next/dist/pages/_document.js","layer":null},"startTime":1733747121156,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":31318,"timestamp":49377333990,"id":539,"parentId":332,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":33307,"timestamp":49377334025,"id":540,"parentId":334,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":34715,"timestamp":49377334064,"id":541,"parentId":335,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35774,"timestamp":49377334216,"id":545,"parentId":339,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":38970,"timestamp":49377334174,"id":544,"parentId":337,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":40447,"timestamp":49377334251,"id":546,"parentId":340,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":41996,"timestamp":49377334316,"id":548,"parentId":344,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":43942,"timestamp":49377334284,"id":547,"parentId":343,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":45637,"timestamp":49377334386,"id":550,"parentId":338,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":47713,"timestamp":49377334353,"id":549,"parentId":336,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":48441,"timestamp":49377334603,"id":553,"parentId":351,"tags":{"name":"/app/pages/admin/[user_id]/index.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":49293,"timestamp":49377334651,"id":554,"parentId":348,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":53603,"timestamp":49377334418,"id":551,"parentId":341,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":54242,"timestamp":49377334687,"id":555,"parentId":350,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":54840,"timestamp":49377334721,"id":556,"parentId":352,"tags":{"name":"/app/pages/admin/[user_id]/settings.jsx","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":77456,"timestamp":49377334098,"id":542,"parentId":404,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":88512,"timestamp":49377334130,"id":543,"parentId":408,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1733747121237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":41,"timestamp":49377507203,"id":564,"parentId":417,"tags":{"name":"lodash","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":32,"timestamp":49377507692,"id":578,"parentId":425,"tags":{"name":"os","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6740,"timestamp":49377507066,"id":560,"parentId":342,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9229,"timestamp":49377506883,"id":557,"parentId":346,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx","layer":null},"startTime":1733747121409,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10154,"timestamp":49377506985,"id":558,"parentId":347,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11221,"timestamp":49377507028,"id":559,"parentId":349,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11767,"timestamp":49377507167,"id":563,"parentId":361,"tags":{"name":"/app/pages/admin/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12600,"timestamp":49377507137,"id":562,"parentId":356,"tags":{"name":"/app/pages/admin/[user_id]/schema.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14047,"timestamp":49377507106,"id":561,"parentId":345,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14992,"timestamp":49377507277,"id":565,"parentId":354,"tags":{"name":"/app/pages/admin/[user_id]/media/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15538,"timestamp":49377507351,"id":567,"parentId":353,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16195,"timestamp":49377507381,"id":568,"parentId":360,"tags":{"name":"/app/pages/admin/[user_id]/users/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16803,"timestamp":49377507418,"id":569,"parentId":359,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18208,"timestamp":49377507319,"id":566,"parentId":355,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18818,"timestamp":49377507447,"id":570,"parentId":357,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19255,"timestamp":49377507537,"id":573,"parentId":364,"tags":{"name":"/app/pages/api/fetch-media.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20349,"timestamp":49377507475,"id":571,"parentId":358,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20701,"timestamp":49377507627,"id":576,"parentId":363,"tags":{"name":"/app/pages/api/exportTableData.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21513,"timestamp":49377507594,"id":575,"parentId":366,"tags":{"name":"/app/pages/api/query/[user_id]/get-private-file.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22663,"timestamp":49377507565,"id":574,"parentId":365,"tags":{"name":"/app/pages/api/query/[user_id]/add-file.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25482,"timestamp":49377507508,"id":572,"parentId":362,"tags":{"name":"/app/pages/api/addUserMedia.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":26212,"timestamp":49377507738,"id":579,"parentId":371,"tags":{"name":"/app/pages/contact.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":30608,"timestamp":49377507656,"id":577,"parentId":367,"tags":{"name":"/app/pages/api/query/[user_id]/add-image.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":31442,"timestamp":49377507774,"id":580,"parentId":368,"tags":{"name":"/app/pages/api/query/[user_id]/post.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":32339,"timestamp":49377507810,"id":581,"parentId":369,"tags":{"name":"/app/pages/api/query/[user_id]/delete-file.js","layer":"api"},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":37635,"timestamp":49377507898,"id":584,"parentId":378,"tags":{"name":"/app/pages/privacy.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":38330,"timestamp":49377507839,"id":582,"parentId":374,"tags":{"name":"/app/pages/login.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":41695,"timestamp":49377507869,"id":583,"parentId":377,"tags":{"name":"/app/pages/create-account.jsx","layer":null},"startTime":1733747121410,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":42221,"timestamp":49377507958,"id":586,"parentId":375,"tags":{"name":"/app/pages/index.jsx","layer":null},"startTime":1733747121411,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":43995,"timestamp":49377507930,"id":585,"parentId":379,"tags":{"name":"/app/pages/logout.jsx","layer":null},"startTime":1733747121411,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1281340,"timestamp":49376308393,"id":173,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6113,"timestamp":49377619390,"id":589,"parentId":372,"tags":{"name":"/app/pages/docs/index.jsx","layer":null},"startTime":1733747121522,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6835,"timestamp":49377619233,"id":587,"parentId":370,"tags":{"name":"/app/pages/blog/index.jsx","layer":null},"startTime":1733747121522,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7736,"timestamp":49377619344,"id":588,"parentId":381,"tags":{"name":"/app/pages/redirect.jsx","layer":null},"startTime":1733747121522,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9355,"timestamp":49377619427,"id":590,"parentId":383,"tags":{"name":"/app/pages/send-password-reset-link.jsx","layer":null},"startTime":1733747121522,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11345,"timestamp":49377619459,"id":591,"parentId":387,"tags":{"name":"/app/pages/reset-password.jsx","layer":null},"startTime":1733747121522,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7669,"timestamp":49377647359,"id":595,"parentId":382,"tags":{"name":"/app/pages/su/backups.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8819,"timestamp":49377647101,"id":592,"parentId":373,"tags":{"name":"/app/pages/docs/[page]/index.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9799,"timestamp":49377647229,"id":593,"parentId":376,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10112,"timestamp":49377647396,"id":596,"parentId":385,"tags":{"name":"/app/pages/su/console.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10486,"timestamp":49377647429,"id":597,"parentId":389,"tags":{"name":"/app/pages/su/error-logs.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12034,"timestamp":49377647314,"id":594,"parentId":380,"tags":{"name":"/app/pages/email-verification/index.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12435,"timestamp":49377647462,"id":598,"parentId":384,"tags":{"name":"/app/pages/su/docs/create-page.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12885,"timestamp":49377647532,"id":600,"parentId":388,"tags":{"name":"/app/pages/su/docs/index.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":13845,"timestamp":49377647501,"id":599,"parentId":386,"tags":{"name":"/app/pages/su/docs/edit-page.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15077,"timestamp":49377647564,"id":601,"parentId":390,"tags":{"name":"/app/pages/su/envar.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15819,"timestamp":49377647600,"id":602,"parentId":395,"tags":{"name":"/app/pages/su/servers.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16391,"timestamp":49377647633,"id":603,"parentId":393,"tags":{"name":"/app/pages/su/load-balancing.jsx","layer":null},"startTime":1733747121550,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":947,"timestamp":49377710465,"id":608,"parentId":404,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1733747121613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":686,"timestamp":49377710823,"id":609,"parentId":404,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1733747121613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4779,"timestamp":49377710313,"id":605,"parentId":399,"tags":{"name":"/app/pages/terms.jsx","layer":null},"startTime":1733747121613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5241,"timestamp":49377710373,"id":606,"parentId":391,"tags":{"name":"/app/pages/su/docs/pages/index.jsx","layer":null},"startTime":1733747121613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5810,"timestamp":49377710195,"id":604,"parentId":394,"tags":{"name":"/app/pages/su/index.jsx","layer":null},"startTime":1733747121613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6024,"timestamp":49377710424,"id":607,"parentId":392,"tags":{"name":"/app/pages/su/docs/pages/[id].jsx","layer":null},"startTime":1733747121613,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4817,"timestamp":49377727902,"id":612,"parentId":414,"tags":{"name":"/app/functions/frontend/clientAuthUser.js","layer":null},"startTime":1733747121630,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5384,"timestamp":49377727943,"id":613,"parentId":413,"tags":{"name":"/app/functions/frontend/fetchApi.js","layer":null},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6228,"timestamp":49377727845,"id":611,"parentId":401,"tags":{"name":"/app/pages/su/login.jsx","layer":null},"startTime":1733747121630,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7093,"timestamp":49377727738,"id":610,"parentId":400,"tags":{"name":"/app/pages/unsubscribe.jsx","layer":null},"startTime":1733747121630,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7628,"timestamp":49377728014,"id":615,"parentId":404,"tags":{"name":"/app/components/ErrorBoundary.jsx","layer":null},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8341,"timestamp":49377727979,"id":614,"parentId":415,"tags":{"name":"/app/functions/backend/userAuth.js","layer":"api"},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8632,"timestamp":49377728083,"id":617,"parentId":397,"tags":{"name":"/app/pages/su/users/index.jsx","layer":null},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9478,"timestamp":49377728054,"id":616,"parentId":396,"tags":{"name":"/app/pages/su/users/[single].jsx","layer":null},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9793,"timestamp":49377728111,"id":618,"parentId":398,"tags":{"name":"/app/pages/su/users/new.jsx","layer":null},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15325,"timestamp":49377728143,"id":619,"parentId":416,"tags":{"name":"/app/package-shared/functions/backend/serverError.js","layer":"api"},"startTime":1733747121631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":34,"timestamp":49377752569,"id":626,"parentId":472,"tags":{"name":"util","layer":null},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17,"timestamp":49377752624,"id":627,"parentId":472,"tags":{"name":"url","layer":null},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":1147,"timestamp":49377752540,"id":625,"parentId":422,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":1215,"timestamp":49377752779,"id":631,"parentId":422,"tags":{"name":"/app/package-shared/data/presets/users.json","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5030,"timestamp":49377752251,"id":620,"parentId":420,"tags":{"name":"/app/functions/backend/checkUserRights.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5441,"timestamp":49377752366,"id":621,"parentId":420,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5821,"timestamp":49377752423,"id":622,"parentId":414,"tags":{"name":"/app/layouts/GeneralLayout.jsx","layer":null},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6433,"timestamp":49377752466,"id":623,"parentId":423,"tags":{"name":"/app/package-shared/functions/backend/handleNodemailer.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6848,"timestamp":49377752504,"id":624,"parentId":414,"tags":{"name":"/app/components/general/PageHeadTags.jsx","layer":null},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7095,"timestamp":49377752653,"id":628,"parentId":427,"tags":{"name":"/app/functions/backend/copyFolderRecursively.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7507,"timestamp":49377752703,"id":629,"parentId":425,"tags":{"name":"/app/functions/backend/suAdminUserAuth.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11989,"timestamp":49377752742,"id":630,"parentId":415,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12493,"timestamp":49377752811,"id":632,"parentId":475,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.js","layer":"api"},"startTime":1733747121655,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6004,"timestamp":49377760762,"id":634,"parentId":416,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.js","layer":"api"},"startTime":1733747121663,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5580,"timestamp":49377767143,"id":637,"parentId":419,"tags":{"name":"/app/package-shared/functions/dsql/hashPassword.js","layer":"api"},"startTime":1733747121670,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6004,"timestamp":49377767099,"id":636,"parentId":420,"tags":{"name":"/app/functions/backend/handleTableEntryOrder.js","layer":"api"},"startTime":1733747121670,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6325,"timestamp":49377767190,"id":638,"parentId":435,"tags":{"name":"/app/functions/backend/admin/addDocPage.js","layer":"api"},"startTime":1733747121670,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6572,"timestamp":49377767224,"id":639,"parentId":435,"tags":{"name":"/app/functions/backend/admin/deleteDocPage.js","layer":"api"},"startTime":1733747121670,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7785,"timestamp":49377767017,"id":635,"parentId":418,"tags":{"name":"/app/package-shared/functions/backend/db/sanitizeSql.js","layer":"api"},"startTime":1733747121670,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7878,"timestamp":49377767255,"id":640,"parentId":435,"tags":{"name":"/app/functions/backend/admin/getSnippets.js","layer":"api"},"startTime":1733747121670,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6013,"timestamp":49377775565,"id":642,"parentId":435,"tags":{"name":"/app/functions/backend/admin/grabParentPages.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6510,"timestamp":49377775476,"id":641,"parentId":435,"tags":{"name":"/app/functions/backend/admin/grabChildPages.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6804,"timestamp":49377775641,"id":644,"parentId":424,"tags":{"name":"/app/package-shared/functions/backend/setUserSchemaData.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7324,"timestamp":49377775603,"id":643,"parentId":435,"tags":{"name":"/app/functions/backend/admin/persistDocs.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7520,"timestamp":49377775730,"id":647,"parentId":424,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8035,"timestamp":49377775674,"id":645,"parentId":417,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9092,"timestamp":49377775702,"id":646,"parentId":420,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9708,"timestamp":49377775761,"id":648,"parentId":437,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10137,"timestamp":49377775790,"id":649,"parentId":449,"tags":{"name":"/app/functions/backend/deleteFolderRecursively.js","layer":"api"},"startTime":1733747121678,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-cjs","duration":29527,"timestamp":49377760673,"id":633,"parentId":408,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","layer":null},"startTime":1733747121663,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4851,"timestamp":49377786412,"id":650,"parentId":453,"tags":{"name":"/app/functions/backend/exportDb.js","layer":"api"},"startTime":1733747121689,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":31,"timestamp":49377791583,"id":653,"parentId":533,"tags":{"name":"http","layer":null},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":13,"timestamp":49377791627,"id":654,"parentId":533,"tags":{"name":"crypto","layer":null},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3594,"timestamp":49377791650,"id":655,"parentId":444,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.js","layer":"api"},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4168,"timestamp":49377791690,"id":656,"parentId":444,"tags":{"name":"/app/package-shared/functions/backend/api-cred.js","layer":"api"},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1487662,"timestamp":49376308261,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1488763,"timestamp":49376308116,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6865,"timestamp":49377791445,"id":651,"parentId":468,"tags":{"name":"/app/functions/backend/createDbSchemaFromDb.js","layer":"api"},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7179,"timestamp":49377791769,"id":658,"parentId":538,"tags":{"name":"/app/functions/backend/userAuth.js","layer":null},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7753,"timestamp":49377791721,"id":657,"parentId":479,"tags":{"name":"/app/functions/backend/reAuthUser.js","layer":"api"},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9441,"timestamp":49377791538,"id":652,"parentId":422,"tags":{"name":"/app/package-shared/shell/createDbFromSchema.js","layer":"api"},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9630,"timestamp":49377791804,"id":659,"parentId":444,"tags":{"name":"/app/package-shared/functions/backend/db/deleteDbEntry.js","layer":"api"},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9892,"timestamp":49377791861,"id":661,"parentId":535,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.js","layer":null},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10397,"timestamp":49377791835,"id":660,"parentId":535,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.js","layer":null},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11450,"timestamp":49377791919,"id":663,"parentId":538,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.js","layer":null},"startTime":1733747121695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11935,"timestamp":49377791887,"id":662,"parentId":538,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.js","layer":null},"startTime":1733747121694,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12145,"timestamp":49377792088,"id":668,"parentId":540,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.js","layer":null},"startTime":1733747121695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8383,"timestamp":49377796158,"id":670,"parentId":447,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.js","layer":"api"},"startTime":1733747121699,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8957,"timestamp":49377796065,"id":669,"parentId":451,"tags":{"name":"/app/functions/backend/grabPaths.js","layer":"api"},"startTime":1733747121699,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13006,"timestamp":49377796208,"id":671,"parentId":470,"tags":{"name":"/app/functions/backend/dbSchemaExec.js","layer":"api"},"startTime":1733747121699,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23448,"timestamp":49377791946,"id":664,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/get-page-files.js","layer":null},"startTime":1733747121695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24143,"timestamp":49377791974,"id":665,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/htmlescape.js","layer":null},"startTime":1733747121695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":27,"timestamp":49377817128,"id":687,"parentId":492,"tags":{"name":"google-auth-library","layer":null},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1508899,"timestamp":49376308412,"id":175,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28584,"timestamp":49377792037,"id":667,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1733747121695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":30921,"timestamp":49377791997,"id":666,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1733747121695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6728,"timestamp":49377816828,"id":676,"parentId":511,"tags":{"name":"/app/functions/backend/fsWriteImageToDisk.js","layer":"api"},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7470,"timestamp":49377816692,"id":673,"parentId":545,"tags":{"name":"/app/package-shared/functions/backend/serverError.js","layer":null},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8037,"timestamp":49377816757,"id":674,"parentId":472,"tags":{"name":"/app/package-shared/functions/backend/httpsRequest.js","layer":"api"},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8310,"timestamp":49377816910,"id":679,"parentId":494,"tags":{"name":"/app/package-shared/functions/api/social-login/githubLogin.js","layer":"api"},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9282,"timestamp":49377816796,"id":675,"parentId":480,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.js","layer":"api"},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1517865,"timestamp":49376308249,"id":131,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11185,"timestamp":49377816972,"id":681,"parentId":494,"tags":{"name":"/app/package-shared/shell/utils/camelJoinedtoCamelSpace.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11321,"timestamp":49377817028,"id":683,"parentId":475,"tags":{"name":"/app/functions/backend/delay.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11705,"timestamp":49377817000,"id":682,"parentId":476,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11958,"timestamp":49377817169,"id":688,"parentId":490,"tags":{"name":"/app/functions/backend/delegatedUser.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12491,"timestamp":49377817056,"id":684,"parentId":480,"tags":{"name":"/app/package-shared/functions/backend/addMariadbUser.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12875,"timestamp":49377817209,"id":689,"parentId":490,"tags":{"name":"/app/functions/backend/importExportTableDataFn.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14736,"timestamp":49377816941,"id":680,"parentId":492,"tags":{"name":"/app/package-shared/functions/api/social-login/handleSocialDb.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14986,"timestamp":49377817241,"id":690,"parentId":555,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.js","layer":null},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15892,"timestamp":49377817270,"id":691,"parentId":507,"tags":{"name":"/app/functions/backend/updateSchemaData.js","layer":"api"},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":491,"timestamp":49377839643,"id":698,"parentId":547,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":27758,"timestamp":49377816624,"id":672,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/utils.js","layer":null},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28049,"timestamp":49377816889,"id":678,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/lib/pretty-bytes.js","layer":null},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28679,"timestamp":49377816863,"id":677,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1733747121719,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":28655,"timestamp":49377817106,"id":686,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/utils.js","layer":null},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":31388,"timestamp":49377817083,"id":685,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/tracer.js","layer":null},"startTime":1733747121720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9552,"timestamp":49377839665,"id":699,"parentId":516,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.jsx","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10566,"timestamp":49377839265,"id":692,"parentId":545,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11359,"timestamp":49377839383,"id":693,"parentId":538,"tags":{"name":"/app/layouts/AdminLayout.jsx","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11445,"timestamp":49377839697,"id":700,"parentId":516,"tags":{"name":"/app/components/pages/homepage/FooterCta.jsx","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":14197,"timestamp":49377839435,"id":694,"parentId":538,"tags":{"name":"/app/components/general/ExtraContentDatabase.jsx","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4221,"timestamp":49377861100,"id":704,"parentId":516,"tags":{"name":"/app/components/pages/about/Hero.jsx","layer":null},"startTime":1733747121764,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5323,"timestamp":49377860917,"id":701,"parentId":516,"tags":{"name":"/app/components/pages/homepage/MainFeaturesSection.jsx","layer":null},"startTime":1733747121764,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5954,"timestamp":49377861135,"id":705,"parentId":504,"tags":{"name":"/app/package-shared/functions/api/query/get.js","layer":"api"},"startTime":1733747121764,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8094,"timestamp":49377861170,"id":706,"parentId":518,"tags":{"name":"/app/package-shared/functions/api/users/api-delete-user.js","layer":"api"},"startTime":1733747121764,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1565030,"timestamp":49376308230,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15921,"timestamp":49377861016,"id":702,"parentId":502,"tags":{"name":"/app/package-shared/shell/mariadb-users/refreshUsersAndGrants.js","layer":"api"},"startTime":1733747121764,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":37736,"timestamp":49377839585,"id":697,"parentId":543,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38728,"timestamp":49377839471,"id":695,"parentId":543,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41543,"timestamp":49377839520,"id":696,"parentId":542,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1733747121742,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10449,"timestamp":49377871562,"id":708,"parentId":520,"tags":{"name":"/app/package-shared/functions/api/users/api-get-user.js","layer":"api"},"startTime":1733747121774,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11551,"timestamp":49377871439,"id":707,"parentId":519,"tags":{"name":"/app/package-shared/functions/api/users/api-create-user.js","layer":"api"},"startTime":1733747121774,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12431,"timestamp":49377871618,"id":709,"parentId":522,"tags":{"name":"/app/package-shared/functions/api/users/api-login.js","layer":"api"},"startTime":1733747121774,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":27,"timestamp":49377890459,"id":724,"parentId":582,"tags":{"name":"next/head","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1582315,"timestamp":49376308242,"id":129,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6160,"timestamp":49377890098,"id":712,"parentId":566,"tags":{"name":"/app/functions/backend/grabPaths.js","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6672,"timestamp":49377890171,"id":714,"parentId":539,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7595,"timestamp":49377889974,"id":710,"parentId":530,"tags":{"name":"/app/package-shared/functions/api/users/api-send-email-code.js","layer":"api"},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8714,"timestamp":49377890135,"id":713,"parentId":538,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":16674,"timestamp":49377890229,"id":716,"parentId":531,"tags":{"name":"/app/package-shared/functions/api/users/api-reauth-user.js","layer":"api"},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17542,"timestamp":49377890202,"id":715,"parentId":532,"tags":{"name":"/app/package-shared/functions/api/users/api-update-user.js","layer":"api"},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18122,"timestamp":49377890287,"id":718,"parentId":540,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18498,"timestamp":49377890342,"id":720,"parentId":539,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":19693,"timestamp":49377890256,"id":717,"parentId":540,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20239,"timestamp":49377890315,"id":719,"parentId":540,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20917,"timestamp":49377890431,"id":723,"parentId":545,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21679,"timestamp":49377890402,"id":722,"parentId":548,"tags":{"name":"/app/components/admin/databases/TablesContent.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22627,"timestamp":49377890506,"id":725,"parentId":583,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.js","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23772,"timestamp":49377890368,"id":721,"parentId":541,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.jsx","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":53449,"timestamp":49377861059,"id":703,"parentId":543,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1733747121764,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1610947,"timestamp":49376308258,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":37013,"timestamp":49377890065,"id":711,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","layer":null},"startTime":1733747121793,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4893,"timestamp":49377939177,"id":726,"parentId":583,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.js","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5468,"timestamp":49377939272,"id":727,"parentId":521,"tags":{"name":"/app/package-shared/functions/api/users/social/api-github-login.js","layer":"api"},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5951,"timestamp":49377939320,"id":728,"parentId":523,"tags":{"name":"/app/package-shared/functions/api/users/social/api-google-login.js","layer":"api"},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8482,"timestamp":49377939353,"id":729,"parentId":545,"tags":{"name":"/app/functions/backend/grabTableSchemaData.js","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8797,"timestamp":49377939414,"id":731,"parentId":547,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.jsx","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9224,"timestamp":49377939383,"id":730,"parentId":547,"tags":{"name":"/app/components/admin/databases/AddTableContent.jsx","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9732,"timestamp":49377939544,"id":735,"parentId":555,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.jsx","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10463,"timestamp":49377939510,"id":734,"parentId":549,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.jsx","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10944,"timestamp":49377939579,"id":736,"parentId":550,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.jsx","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23868,"timestamp":49377939456,"id":732,"parentId":543,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23965,"timestamp":49377939485,"id":733,"parentId":543,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","layer":null},"startTime":1733747121842,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3357,"timestamp":49377965560,"id":738,"parentId":595,"tags":{"name":"/app/functions/backend/suAdminUserAuth.js","layer":null},"startTime":1733747121868,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8173,"timestamp":49377965462,"id":737,"parentId":551,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.jsx","layer":null},"startTime":1733747121868,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5170,"timestamp":49377969150,"id":740,"parentId":535,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.jsx","layer":null},"startTime":1733747121872,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5600,"timestamp":49377969077,"id":739,"parentId":553,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.jsx","layer":null},"startTime":1733747121872,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5834,"timestamp":49377969191,"id":741,"parentId":535,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.jsx","layer":null},"startTime":1733747121872,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6739,"timestamp":49377969225,"id":742,"parentId":535,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.jsx","layer":null},"startTime":1733747121872,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6320,"timestamp":49377993038,"id":744,"parentId":536,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.jsx","layer":null},"startTime":1733747121896,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6722,"timestamp":49377992938,"id":743,"parentId":536,"tags":{"name":"/app/components/admin/connect/ConnectContent.jsx","layer":null},"startTime":1733747121896,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7337,"timestamp":49377993077,"id":745,"parentId":536,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.jsx","layer":null},"startTime":1733747121896,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7768,"timestamp":49377993108,"id":746,"parentId":537,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.jsx","layer":null},"startTime":1733747121896,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5155,"timestamp":49378002470,"id":747,"parentId":544,"tags":{"name":"/app/components/admin/databases/EditTableContent.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5477,"timestamp":49378002568,"id":748,"parentId":554,"tags":{"name":"/app/components/admin/databases/DatabasesContent.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5933,"timestamp":49378002681,"id":751,"parentId":556,"tags":{"name":"/app/components/admin/settings/SettingsContent.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6065,"timestamp":49378002781,"id":754,"parentId":562,"tags":{"name":"/app/components/general/VerificationBanner.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6437,"timestamp":49378002753,"id":753,"parentId":546,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6683,"timestamp":49378002809,"id":755,"parentId":585,"tags":{"name":"/app/components/general/LoadingBlock.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8045,"timestamp":49378002609,"id":749,"parentId":546,"tags":{"name":"/app/components/admin/databases/SingleTableContent.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14335,"timestamp":49378002722,"id":752,"parentId":572,"tags":{"name":"/app/functions/backend/fsWriteImageToDiskFromBase64.js","layer":"api"},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14739,"timestamp":49378002918,"id":759,"parentId":565,"tags":{"name":"/app/components/general/UploadFileComponent.jsx","layer":null},"startTime":1733747121906,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15234,"timestamp":49378002892,"id":758,"parentId":565,"tags":{"name":"/app/components/general/UploadImageComponent.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16036,"timestamp":49378002866,"id":757,"parentId":562,"tags":{"name":"/app/components/general/Breadcrumbs.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17314,"timestamp":49378002952,"id":760,"parentId":585,"tags":{"name":"/app/functions/frontend/clearCaches.js","layer":null},"startTime":1733747121906,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18188,"timestamp":49378002839,"id":756,"parentId":562,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.jsx","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-cjs","duration":31271,"timestamp":49378002643,"id":750,"parentId":543,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","layer":null},"startTime":1733747121905,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11247,"timestamp":49378034581,"id":764,"parentId":559,"tags":{"name":"/app/components/admin/users/DbUsersContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12087,"timestamp":49378034545,"id":763,"parentId":558,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12318,"timestamp":49378034625,"id":765,"parentId":569,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12822,"timestamp":49378034658,"id":766,"parentId":568,"tags":{"name":"/app/components/admin/users/UsersContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14269,"timestamp":49378034402,"id":761,"parentId":568,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15415,"timestamp":49378034502,"id":762,"parentId":557,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15753,"timestamp":49378034722,"id":768,"parentId":565,"tags":{"name":"/app/components/admin/media/MediaContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16836,"timestamp":49378034758,"id":769,"parentId":565,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18650,"timestamp":49378034691,"id":767,"parentId":567,"tags":{"name":"/app/components/admin/users/AddNewUserContent.jsx","layer":null},"startTime":1733747121937,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":38,"timestamp":49378082171,"id":774,"parentId":632,"tags":{"name":"buffer","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7131,"timestamp":49378082089,"id":772,"parentId":580,"tags":{"name":"/app/package-shared/functions/api/query/post.js","layer":"api"},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7929,"timestamp":49378082133,"id":773,"parentId":565,"tags":{"name":"/app/components/admin/media/NewFolderPopup.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8906,"timestamp":49378081914,"id":770,"parentId":565,"tags":{"name":"/app/components/admin/media/NewMediaPopup.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9127,"timestamp":49378082242,"id":775,"parentId":565,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9543,"timestamp":49378082335,"id":777,"parentId":571,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9814,"timestamp":49378082405,"id":779,"parentId":582,"tags":{"name":"/app/components/general/Logo.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10584,"timestamp":49378082296,"id":776,"parentId":566,"tags":{"name":"/app/components/admin/media/MediaFolderContent.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10798,"timestamp":49378082444,"id":780,"parentId":579,"tags":{"name":"/app/components/pages/contact/ContactHero.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11241,"timestamp":49378082544,"id":783,"parentId":586,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11817,"timestamp":49378082510,"id":782,"parentId":586,"tags":{"name":"/app/components/pages/homepage/Hero2.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12717,"timestamp":49378082478,"id":781,"parentId":579,"tags":{"name":"/app/components/pages/contact/ContactForm.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1787356,"timestamp":49376307895,"id":48,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1787360,"timestamp":49376307916,"id":54,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788346,"timestamp":49376307714,"id":34,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788352,"timestamp":49376307722,"id":35,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788299,"timestamp":49376307789,"id":40,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788347,"timestamp":49376307749,"id":39,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788247,"timestamp":49376307855,"id":42,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788238,"timestamp":49376307869,"id":43,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1788228,"timestamp":49376307885,"id":45,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":19764,"timestamp":49378082371,"id":778,"parentId":570,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20037,"timestamp":49378082577,"id":784,"parentId":565,"tags":{"name":"/app/components/general/UploadVideoComponent.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20249,"timestamp":49378082645,"id":786,"parentId":590,"tags":{"name":"/app/components/general/InfoBlock.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20509,"timestamp":49378082614,"id":785,"parentId":590,"tags":{"name":"/app/components/general/FormSuccessBlock.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":20953,"timestamp":49378082675,"id":787,"parentId":584,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22398,"timestamp":49378082745,"id":789,"parentId":652,"tags":{"name":"/app/package-shared/utils/ejson.js","layer":"api"},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23016,"timestamp":49378082706,"id":788,"parentId":584,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23329,"timestamp":49378082778,"id":790,"parentId":595,"tags":{"name":"/app/layouts/SuAdminLayout.jsx","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":36790,"timestamp":49378082034,"id":771,"parentId":596,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1733747121985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4580,"timestamp":49378119453,"id":791,"parentId":662,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","layer":null},"startTime":1733747122022,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":34,"timestamp":49378125560,"id":792,"parentId":674,"tags":{"name":"https","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":18,"timestamp":49378126169,"id":805,"parentId":634,"tags":{"name":"sanitize-html","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15,"timestamp":49378126539,"id":814,"parentId":696,"tags":{"name":"react-dom","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":9,"timestamp":49378126568,"id":815,"parentId":623,"tags":{"name":"nodemailer","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":9,"timestamp":49378126588,"id":816,"parentId":645,"tags":{"name":"serverless-mysql","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5461,"timestamp":49378125615,"id":793,"parentId":592,"tags":{"name":"/app/package-shared/functions/backend/dbHandler.js","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6039,"timestamp":49378125810,"id":796,"parentId":582,"tags":{"name":"/app/components/pages/login/LoginForm.jsx","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6741,"timestamp":49378125706,"id":794,"parentId":560,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.jsx","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1824235,"timestamp":49376308246,"id":130,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1824581,"timestamp":49376307919,"id":55,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1824779,"timestamp":49376307729,"id":36,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1824366,"timestamp":49376308149,"id":99,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1824328,"timestamp":49376308194,"id":113,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9821,"timestamp":49378125851,"id":797,"parentId":583,"tags":{"name":"/app/components/pages/create-account/Hero.jsx","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9984,"timestamp":49378125914,"id":799,"parentId":589,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10465,"timestamp":49378125883,"id":798,"parentId":589,"tags":{"name":"/app/components/pages/docs/DocsAside.jsx","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10658,"timestamp":49378125950,"id":800,"parentId":589,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11879,"timestamp":49378125746,"id":795,"parentId":561,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.jsx","layer":null},"startTime":1733747122028,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11734,"timestamp":49378126132,"id":804,"parentId":592,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11752,"timestamp":49378126354,"id":809,"parentId":587,"tags":{"name":"/app/components/pages/blog/BlogHero.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11904,"timestamp":49378126501,"id":813,"parentId":602,"tags":{"name":"/app/package-shared/utils/ejson.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12581,"timestamp":49378126388,"id":810,"parentId":595,"tags":{"name":"/app/components/su/SuErrorLogsContent.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13025,"timestamp":49378126440,"id":811,"parentId":595,"tags":{"name":"/app/components/su/SuBackupsContent.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14227,"timestamp":49378126472,"id":812,"parentId":597,"tags":{"name":"/app/components/su/SuDashboardContent.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14787,"timestamp":49378126605,"id":817,"parentId":582,"tags":{"name":"/app/components/general/LoadingScreen.jsx","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15127,"timestamp":49378126643,"id":818,"parentId":622,"tags":{"name":"/app/functions/frontend/updateNavLinks.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25318,"timestamp":49378126247,"id":807,"parentId":685,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/constants.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":27,"timestamp":49378152559,"id":825,"parentId":652,"tags":{"name":"dotenv","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17,"timestamp":49378152678,"id":828,"parentId":676,"tags":{"name":"node-fetch","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":20,"timestamp":49378152709,"id":829,"parentId":676,"tags":{"name":"sharp","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":33346,"timestamp":49378125982,"id":801,"parentId":666,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":33659,"timestamp":49378126041,"id":802,"parentId":664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34027,"timestamp":49378126087,"id":803,"parentId":664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34194,"timestamp":49378126201,"id":806,"parentId":677,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34456,"timestamp":49378126308,"id":808,"parentId":685,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-thenable.js","layer":null},"startTime":1733747122029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8924,"timestamp":49378152278,"id":820,"parentId":662,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9310,"timestamp":49378152178,"id":819,"parentId":630,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","layer":"api"},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9025,"timestamp":49378152604,"id":826,"parentId":638,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.js","layer":"api"},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9620,"timestamp":49378152526,"id":824,"parentId":600,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.jsx","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9611,"timestamp":49378152740,"id":830,"parentId":607,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.jsx","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9807,"timestamp":49378152780,"id":831,"parentId":617,"tags":{"name":"/app/components/su/SuUsersContent.jsx","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11130,"timestamp":49378152483,"id":823,"parentId":598,"tags":{"name":"/app/components/su/docs/CreatePageContent.jsx","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11784,"timestamp":49378152645,"id":827,"parentId":725,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.js","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11966,"timestamp":49378152848,"id":833,"parentId":616,"tags":{"name":"/app/components/su/SuSingleUserContent.jsx","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12296,"timestamp":49378152877,"id":834,"parentId":648,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.js","layer":"api"},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12969,"timestamp":49378152813,"id":832,"parentId":596,"tags":{"name":"/app/components/su/SuConsoleContent.jsx","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13064,"timestamp":49378152931,"id":836,"parentId":645,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.js","layer":"api"},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13227,"timestamp":49378152962,"id":837,"parentId":661,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.js","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13583,"timestamp":49378152904,"id":835,"parentId":662,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.js","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13713,"timestamp":49378152989,"id":838,"parentId":605,"tags":{"name":"/app/components/pages/terms/TermsHero.jsx","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14032,"timestamp":49378153047,"id":840,"parentId":611,"tags":{"name":"/app/functions/isLocalSuperUser.js","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14184,"timestamp":49378153078,"id":841,"parentId":651,"tags":{"name":"/app/package-shared/shell/utils/slugToCamelTitle.js","layer":"api"},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14390,"timestamp":49378153107,"id":842,"parentId":602,"tags":{"name":"/app/functions/backend/su/get-servers.js","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14961,"timestamp":49378153185,"id":844,"parentId":622,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.jsx","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15759,"timestamp":49378153015,"id":839,"parentId":605,"tags":{"name":"/app/components/pages/terms/TermsBody.jsx","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16590,"timestamp":49378153135,"id":843,"parentId":622,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.jsx","layer":null},"startTime":1733747122056,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1864902,"timestamp":49376308255,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1864924,"timestamp":49376308251,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872730,"timestamp":49376308143,"id":97,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873189,"timestamp":49376307707,"id":33,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873101,"timestamp":49376307804,"id":41,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872749,"timestamp":49376308164,"id":103,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872753,"timestamp":49376308168,"id":104,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872758,"timestamp":49376308171,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872517,"timestamp":49376308422,"id":178,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873422,"timestamp":49376307526,"id":26,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873365,"timestamp":49376307588,"id":29,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873095,"timestamp":49376307889,"id":46,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873093,"timestamp":49376307898,"id":49,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873096,"timestamp":49376307902,"id":50,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873079,"timestamp":49376307925,"id":57,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873084,"timestamp":49376307928,"id":58,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873063,"timestamp":49376307954,"id":63,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873083,"timestamp":49376307940,"id":61,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873053,"timestamp":49376307976,"id":66,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873064,"timestamp":49376307970,"id":65,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873054,"timestamp":49376307986,"id":68,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873064,"timestamp":49376307981,"id":67,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873044,"timestamp":49376308006,"id":72,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873060,"timestamp":49376307996,"id":70,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873069,"timestamp":49376307991,"id":69,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872996,"timestamp":49376308071,"id":74,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872995,"timestamp":49376308077,"id":76,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872997,"timestamp":49376308080,"id":77,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873008,"timestamp":49376308074,"id":75,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873003,"timestamp":49376308083,"id":78,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873029,"timestamp":49376308062,"id":73,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872985,"timestamp":49376308113,"id":87,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872976,"timestamp":49376308128,"id":92,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872973,"timestamp":49376308137,"id":95,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872975,"timestamp":49376308140,"id":96,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872970,"timestamp":49376308152,"id":100,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873025,"timestamp":49376308104,"id":84,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873223,"timestamp":49376307912,"id":53,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873231,"timestamp":49376307909,"id":52,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"}] +[{"name":"add-entry","duration":1873421,"timestamp":49376307905,"id":51,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873224,"timestamp":49376308110,"id":86,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873167,"timestamp":49376308188,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873253,"timestamp":49376308107,"id":85,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873159,"timestamp":49376308209,"id":118,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873159,"timestamp":49376308215,"id":120,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873155,"timestamp":49376308224,"id":123,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873210,"timestamp":49376308179,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873007,"timestamp":49376308389,"id":172,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873470,"timestamp":49376307934,"id":60,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873929,"timestamp":49376307483,"id":23,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873319,"timestamp":49376308099,"id":83,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873691,"timestamp":49376307736,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873935,"timestamp":49376307498,"id":24,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873897,"timestamp":49376307541,"id":27,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873934,"timestamp":49376307508,"id":25,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873772,"timestamp":49376307675,"id":31,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873269,"timestamp":49376308191,"id":112,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873267,"timestamp":49376308200,"id":115,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873087,"timestamp":49376308386,"id":171,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873070,"timestamp":49376308408,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873068,"timestamp":49376308415,"id":176,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873927,"timestamp":49376307562,"id":28,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873282,"timestamp":49376308212,"id":119,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1872984,"timestamp":49376308531,"id":210,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1873434,"timestamp":49376308086,"id":79,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9056,"timestamp":49378189577,"id":847,"parentId":652,"tags":{"name":"/app/package-shared/shell/utils/noDatabaseDbHandler.js","layer":"api"},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9668,"timestamp":49378189507,"id":846,"parentId":601,"tags":{"name":"/app/components/su/SuEnvContent.jsx","layer":null},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10289,"timestamp":49378189345,"id":845,"parentId":622,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.jsx","layer":null},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10290,"timestamp":49378189678,"id":849,"parentId":652,"tags":{"name":"/app/package-shared/shell/utils/varDatabaseDbHandler.js","layer":"api"},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11072,"timestamp":49378189632,"id":848,"parentId":652,"tags":{"name":"/app/package-shared/shell/utils/createTable.js","layer":"api"},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11286,"timestamp":49378189820,"id":851,"parentId":652,"tags":{"name":"/app/package-shared/shell/utils/dbHandler.js","layer":"api"},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11505,"timestamp":49378189925,"id":853,"parentId":670,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11691,"timestamp":49378190012,"id":855,"parentId":618,"tags":{"name":"/app/components/su/SuNewUserContent.jsx","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12048,"timestamp":49378189970,"id":854,"parentId":690,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12334,"timestamp":49378190079,"id":857,"parentId":694,"tags":{"name":"/app/functions/frontend/downloadApiStream.js","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12794,"timestamp":49378190045,"id":856,"parentId":693,"tags":{"name":"/app/components/general/DiskUsageComponent.jsx","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13458,"timestamp":49378190113,"id":858,"parentId":691,"tags":{"name":"/app/functions/backend/cleanUpSchemaData.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13968,"timestamp":49378190151,"id":859,"parentId":702,"tags":{"name":"/app/package-shared/shell/mariadb-users/handleGrants.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15919,"timestamp":49378189725,"id":850,"parentId":652,"tags":{"name":"/app/package-shared/shell/utils/updateTable.js","layer":"api"},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1898852,"timestamp":49376307946,"id":62,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1898685,"timestamp":49376308131,"id":93,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19917,"timestamp":49378190184,"id":860,"parentId":707,"tags":{"name":"/app/package-shared/functions/backend/addUsersTableToDb.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20362,"timestamp":49378190214,"id":861,"parentId":707,"tags":{"name":"/app/package-shared/functions/backend/updateUsersTableSchema.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20931,"timestamp":49378190250,"id":862,"parentId":680,"tags":{"name":"/app/package-shared/functions/api/social-login/loginSocialUser.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21255,"timestamp":49378190923,"id":868,"parentId":694,"tags":{"name":"/app/components/general/CopySlug.jsx","layer":null},"startTime":1733747122094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21460,"timestamp":49378190958,"id":869,"parentId":713,"tags":{"name":"/app/components/general/BackButton.jsx","layer":null},"startTime":1733747122094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22945,"timestamp":49378190299,"id":863,"parentId":705,"tags":{"name":"/app/package-shared/functions/backend/db/runQuery.js","layer":"api"},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":61484,"timestamp":49378152429,"id":822,"parentId":696,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":62090,"timestamp":49378152324,"id":821,"parentId":696,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1733747122055,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1912986,"timestamp":49376308155,"id":101,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1913004,"timestamp":49376308158,"id":102,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1912993,"timestamp":49376308177,"id":107,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":1305,"timestamp":49378223453,"id":886,"parentId":734,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1921919,"timestamp":49376308182,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1921958,"timestamp":49376308174,"id":106,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":53945,"timestamp":49378189872,"id":852,"parentId":685,"tags":{"name":"/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js","layer":null},"startTime":1733747122092,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25854,"timestamp":49378222985,"id":871,"parentId":720,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":26516,"timestamp":49378223025,"id":872,"parentId":720,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":27656,"timestamp":49378222874,"id":870,"parentId":714,"tags":{"name":"/app/components/general/GeneralPopup.jsx","layer":null},"startTime":1733747122125,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":27940,"timestamp":49378223097,"id":874,"parentId":713,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28868,"timestamp":49378223127,"id":875,"parentId":693,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29666,"timestamp":49378223155,"id":876,"parentId":693,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":30164,"timestamp":49378223217,"id":878,"parentId":720,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":32876,"timestamp":49378223065,"id":873,"parentId":714,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":33209,"timestamp":49378223309,"id":881,"parentId":717,"tags":{"name":"/app/components/general/DatabaseSlugCopy.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":34257,"timestamp":49378223245,"id":879,"parentId":722,"tags":{"name":"/app/components/admin/databases/TablesList.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35036,"timestamp":49378223280,"id":880,"parentId":717,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35506,"timestamp":49378223364,"id":883,"parentId":723,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35927,"timestamp":49378223397,"id":884,"parentId":699,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":36661,"timestamp":49378223424,"id":885,"parentId":721,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":37149,"timestamp":49378223528,"id":889,"parentId":699,"tags":{"name":"/app/components/general/ContainedSection.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":37793,"timestamp":49378223475,"id":887,"parentId":727,"tags":{"name":"/app/package-shared/utils/camelJoinedtoCamelSpace.js","layer":"api"},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":40100,"timestamp":49378223337,"id":882,"parentId":723,"tags":{"name":"/app/components/admin/databases/TableFields.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":41061,"timestamp":49378223554,"id":890,"parentId":721,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaVisualizer.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":41621,"timestamp":49378223587,"id":891,"parentId":721,"tags":{"name":"/app/components/general/AceEditor.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":42248,"timestamp":49378223615,"id":892,"parentId":721,"tags":{"name":"/app/components/general/CodeBlock.jsx","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":89282,"timestamp":49378190897,"id":867,"parentId":717,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":93520,"timestamp":49378190338,"id":864,"parentId":700,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":97010,"timestamp":49378190815,"id":865,"parentId":701,"tags":{"name":"__barrel_optimize__?names=Blocks!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":101973,"timestamp":49378190866,"id":866,"parentId":694,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122093,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":74105,"timestamp":49378223190,"id":877,"parentId":753,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":78104,"timestamp":49378223505,"id":888,"parentId":769,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122126,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1995730,"timestamp":49376308239,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2897,"timestamp":49378310883,"id":897,"parentId":775,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122213,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3592,"timestamp":49378310915,"id":898,"parentId":779,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122214,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4315,"timestamp":49378310941,"id":899,"parentId":776,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122214,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5052,"timestamp":49378310978,"id":900,"parentId":783,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122214,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10611,"timestamp":49378310593,"id":894,"parentId":717,"tags":{"name":"/app/components/general/ui/ButtonGroup.jsx","layer":null},"startTime":1733747122213,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11088,"timestamp":49378310485,"id":893,"parentId":730,"tags":{"name":"/app/components/admin/databases/AddTableForm.jsx","layer":null},"startTime":1733747122213,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11222,"timestamp":49378310801,"id":895,"parentId":721,"tags":{"name":"/app/components/form/FormCheckboxes.jsx","layer":null},"startTime":1733747122213,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11809,"timestamp":49378310845,"id":896,"parentId":721,"tags":{"name":"/app/components/form/FormSelect.jsx","layer":null},"startTime":1733747122213,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12199,"timestamp":49378311037,"id":902,"parentId":603,"tags":{"name":"/app/components/su/load-balancing/index.jsx","layer":null},"startTime":1733747122214,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12537,"timestamp":49378311005,"id":901,"parentId":602,"tags":{"name":"/app/components/su/servers/index.jsx","layer":null},"startTime":1733747122214,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13211,"timestamp":49378311070,"id":903,"parentId":734,"tags":{"name":"/app/components/admin/databases/TableEntriesList.jsx","layer":null},"startTime":1733747122214,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2533,"timestamp":49378333794,"id":908,"parentId":786,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3053,"timestamp":49378333917,"id":912,"parentId":811,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9604,"timestamp":49378333761,"id":907,"parentId":742,"tags":{"name":"/app/functions/frontend/checkUniqueField.js","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10056,"timestamp":49378333720,"id":906,"parentId":734,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.jsx","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10861,"timestamp":49378333586,"id":904,"parentId":734,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.jsx","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10973,"timestamp":49378333886,"id":911,"parentId":739,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.jsx","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":11951,"timestamp":49378333822,"id":909,"parentId":737,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.jsx","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12177,"timestamp":49378333940,"id":913,"parentId":737,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.jsx","layer":null},"startTime":1733747122237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13193,"timestamp":49378333851,"id":910,"parentId":736,"tags":{"name":"/app/components/admin/databases/TableEntryForm.jsx","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13469,"timestamp":49378333967,"id":914,"parentId":739,"tags":{"name":"/app/components/admin/dashboard/Metrics.jsx","layer":null},"startTime":1733747122237,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15636,"timestamp":49378333681,"id":905,"parentId":734,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.jsx","layer":null},"startTime":1733747122236,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9353,"timestamp":49378358712,"id":916,"parentId":741,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.jsx","layer":null},"startTime":1733747122261,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10050,"timestamp":49378358610,"id":915,"parentId":739,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.jsx","layer":null},"startTime":1733747122261,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10578,"timestamp":49378358757,"id":917,"parentId":743,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.jsx","layer":null},"startTime":1733747122261,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11601,"timestamp":49378358790,"id":918,"parentId":744,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.jsx","layer":null},"startTime":1733747122261,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":523,"timestamp":49378371062,"id":921,"parentId":763,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1733747122274,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2612,"timestamp":49378371224,"id":924,"parentId":843,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122274,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11863,"timestamp":49378371101,"id":922,"parentId":827,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.js","layer":null},"startTime":1733747122274,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12523,"timestamp":49378370891,"id":919,"parentId":759,"tags":{"name":"/app/functions/frontend/inputFileToBase64.js","layer":null},"startTime":1733747122273,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12952,"timestamp":49378371016,"id":920,"parentId":759,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.js","layer":null},"startTime":1733747122274,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13594,"timestamp":49378371150,"id":923,"parentId":827,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.js","layer":null},"startTime":1733747122274,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3077,"timestamp":49378385694,"id":938,"parentId":856,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3728,"timestamp":49378385724,"id":939,"parentId":869,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4058,"timestamp":49378386038,"id":950,"parentId":870,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4765,"timestamp":49378386062,"id":951,"parentId":875,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,Plug2,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5511,"timestamp":49378386089,"id":952,"parentId":879,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10477,"timestamp":49378385136,"id":925,"parentId":827,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10954,"timestamp":49378385328,"id":928,"parentId":748,"tags":{"name":"/app/components/admin/databases/DatabasesList.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11566,"timestamp":49378385234,"id":926,"parentId":743,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14490,"timestamp":49378385414,"id":930,"parentId":751,"tags":{"name":"/app/components/admin/databases/UserImage.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15647,"timestamp":49378385278,"id":927,"parentId":746,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15630,"timestamp":49378385473,"id":932,"parentId":761,"tags":{"name":"/app/functions/frontend/updateDiskUsage.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15818,"timestamp":49378385507,"id":933,"parentId":769,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16828,"timestamp":49378385384,"id":929,"parentId":747,"tags":{"name":"/app/components/admin/databases/EditTableForm.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17046,"timestamp":49378385535,"id":934,"parentId":769,"tags":{"name":"/app/functions/frontend/downloadFile.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18159,"timestamp":49378385443,"id":931,"parentId":751,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18114,"timestamp":49378385808,"id":942,"parentId":765,"tags":{"name":"/app/components/admin/users/DatabaseUsers.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":19070,"timestamp":49378385750,"id":940,"parentId":749,"tags":{"name":"/app/components/admin/databases/TableIndexes.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":19861,"timestamp":49378385780,"id":941,"parentId":764,"tags":{"name":"/app/components/admin/users/DbUsersList.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20391,"timestamp":49378385837,"id":943,"parentId":756,"tags":{"name":"/app/components/admin/databases/UserSchemaVisualizer.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20930,"timestamp":49378385870,"id":944,"parentId":762,"tags":{"name":"/app/components/form/FormRadios.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21288,"timestamp":49378385924,"id":946,"parentId":766,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.jsx","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21764,"timestamp":49378385950,"id":947,"parentId":766,"tags":{"name":"/app/components/admin/users/UsersList.jsx","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23342,"timestamp":49378385982,"id":948,"parentId":768,"tags":{"name":"/app/components/admin/media/MediaList.jsx","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24501,"timestamp":49378385898,"id":945,"parentId":763,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.jsx","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":27617,"timestamp":49378386009,"id":949,"parentId":796,"tags":{"name":"/app/functions/frontend/userLogin.js","layer":null},"startTime":1733747122289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2604,"timestamp":49378434274,"id":954,"parentId":896,"tags":{"name":"__barrel_optimize__?names=ChevronDown,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122337,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":56883,"timestamp":49378385651,"id":937,"parentId":803,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":57205,"timestamp":49378385606,"id":936,"parentId":802,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":58684,"timestamp":49378385564,"id":935,"parentId":803,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1733747122288,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10478,"timestamp":49378434329,"id":955,"parentId":770,"tags":{"name":"/app/components/admin/media/NewMediaCard.jsx","layer":null},"startTime":1733747122337,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3227,"timestamp":49378445529,"id":966,"parentId":903,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3131,"timestamp":49378446341,"id":987,"parentId":913,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3765,"timestamp":49378446380,"id":988,"parentId":914,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8024,"timestamp":49378445298,"id":959,"parentId":832,"tags":{"name":"/app/components/su/xterm.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8348,"timestamp":49378445331,"id":960,"parentId":842,"tags":{"name":"/app/functions/backend/su/check-servers.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8796,"timestamp":49378445257,"id":958,"parentId":770,"tags":{"name":"/app/components/admin/media/NewFileCard.jsx","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9414,"timestamp":49378445161,"id":957,"parentId":777,"tags":{"name":"/app/components/admin/users/UserListCard.jsx","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9393,"timestamp":49378445368,"id":961,"parentId":834,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.js","layer":"api"},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9513,"timestamp":49378445401,"id":962,"parentId":835,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9702,"timestamp":49378445431,"id":963,"parentId":842,"tags":{"name":"/app/functions/backend/su/get-servers-json-path.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13407,"timestamp":49378446404,"id":989,"parentId":781,"tags":{"name":"/app/components/general/FormAlertBlock.jsx","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14731,"timestamp":49378445496,"id":965,"parentId":782,"tags":{"name":"/app/components/general/FadedImage.jsx","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15408,"timestamp":49378445462,"id":964,"parentId":769,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.jsx","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14849,"timestamp":49378446431,"id":990,"parentId":778,"tags":{"name":"/app/components/admin/users/UserImage.jsx","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":99,"timestamp":49378462773,"id":998,"parentId":832,"tags":{"name":"ansi-regex","layer":null},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2155081,"timestamp":49376307892,"id":47,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2155066,"timestamp":49376307922,"id":56,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2155032,"timestamp":49376307964,"id":64,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2155002,"timestamp":49376308001,"id":71,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2154914,"timestamp":49376308095,"id":82,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2154896,"timestamp":49376308122,"id":90,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2154890,"timestamp":49376308134,"id":94,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2154884,"timestamp":49376308146,"id":98,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2155296,"timestamp":49376307742,"id":38,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2155163,"timestamp":49376307881,"id":44,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2154834,"timestamp":49376308218,"id":121,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2154822,"timestamp":49376308236,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5926,"timestamp":49378462487,"id":992,"parentId":863,"tags":{"name":"/app/package-shared/utils/trim-sql.js","layer":"api"},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6184,"timestamp":49378462621,"id":994,"parentId":848,"tags":{"name":"/app/package-shared/shell/utils/supplementTable.js","layer":"api"},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6711,"timestamp":49378462540,"id":993,"parentId":848,"tags":{"name":"/app/package-shared/shell/utils/generateColumnDescription.js","layer":"api"},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7410,"timestamp":49378462381,"id":991,"parentId":796,"tags":{"name":"/app/components/pages/login/SocialLogin.jsx","layer":null},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7444,"timestamp":49378462662,"id":995,"parentId":860,"tags":{"name":"/app/package-shared/functions/backend/grabNewUsersTableSchema.js","layer":"api"},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8218,"timestamp":49378462739,"id":997,"parentId":863,"tags":{"name":"/app/package-shared/functions/backend/fullAccessDbHandler.js","layer":"api"},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8789,"timestamp":49378462702,"id":996,"parentId":861,"tags":{"name":"/app/package-shared/functions/backend/grabSchemaFieldsFromData.js","layer":"api"},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17,"timestamp":49378472354,"id":1004,"parentId":882,"tags":{"name":"gsap/Flip","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":6,"timestamp":49378472385,"id":1005,"parentId":882,"tags":{"name":"gsap","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":15,"timestamp":49378472447,"id":1007,"parentId":868,"tags":{"name":"tailwind-merge","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2129,"timestamp":49378472211,"id":1001,"parentId":917,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2691,"timestamp":49378472402,"id":1006,"parentId":928,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2169083,"timestamp":49376307604,"id":30,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2169007,"timestamp":49376307699,"id":32,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168783,"timestamp":49376307931,"id":59,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168631,"timestamp":49376308092,"id":81,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168528,"timestamp":49376308203,"id":116,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168538,"timestamp":49376308206,"id":117,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168529,"timestamp":49376308221,"id":122,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168530,"timestamp":49376308227,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2168639,"timestamp":49376308125,"id":91,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7886,"timestamp":49378472473,"id":1008,"parentId":882,"tags":{"name":"/app/functions/frontend/addNewTempField.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8568,"timestamp":49378472263,"id":1002,"parentId":863,"tags":{"name":"/app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","layer":"api"},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2175081,"timestamp":49376308119,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2174805,"timestamp":49376308419,"id":177,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40028,"timestamp":49378445563,"id":967,"parentId":867,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40221,"timestamp":49378445607,"id":968,"parentId":864,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40324,"timestamp":49378445692,"id":970,"parentId":866,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40353,"timestamp":49378445846,"id":974,"parentId":877,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-js","duration":40861,"timestamp":49378445808,"id":973,"parentId":866,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40951,"timestamp":49378445886,"id":975,"parentId":888,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41084,"timestamp":49378445923,"id":976,"parentId":888,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41163,"timestamp":49378446002,"id":978,"parentId":897,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41373,"timestamp":49378445965,"id":977,"parentId":897,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41545,"timestamp":49378446038,"id":979,"parentId":897,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41699,"timestamp":49378446074,"id":980,"parentId":898,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41828,"timestamp":49378446115,"id":981,"parentId":899,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":42387,"timestamp":49378445730,"id":971,"parentId":866,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":42138,"timestamp":49378446152,"id":982,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44034,"timestamp":49378446227,"id":984,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44470,"timestamp":49378446189,"id":983,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44665,"timestamp":49378446304,"id":986,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44912,"timestamp":49378446269,"id":985,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1733747122349,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":46004,"timestamp":49378445648,"id":969,"parentId":865,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/blocks.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":46111,"timestamp":49378445766,"id":972,"parentId":866,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1733747122348,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10640,"timestamp":49378481968,"id":1022,"parentId":790,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.jsx","layer":null},"startTime":1733747122385,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11223,"timestamp":49378482005,"id":1023,"parentId":790,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.jsx","layer":null},"startTime":1733747122385,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-process","duration":29083,"timestamp":49378650443,"id":1027,"parentId":956,"tags":{},"startTime":1733747122553,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-loader","duration":245085,"timestamp":49378434484,"id":956,"parentId":953,"tags":{},"startTime":1733747122337,"traceId":"a901697cbe7cbd9f"},{"name":"css-loader","duration":24522,"timestamp":49378679723,"id":1028,"parentId":953,"tags":{"astUsed":"true"},"startTime":1733747122582,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":271968,"timestamp":49378432667,"id":953,"parentId":782,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1733747122335,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":212642,"timestamp":49378493708,"id":1024,"parentId":800,"tags":{"name":"/app/components/cards/LinkCard.jsx","layer":null},"startTime":1733747122396,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":213444,"timestamp":49378493807,"id":1025,"parentId":812,"tags":{"name":"/app/components/su/components/UserCard.jsx","layer":null},"startTime":1733747122396,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":216469,"timestamp":49378493860,"id":1026,"parentId":823,"tags":{"name":"/app/components/form/FormInput.jsx","layer":null},"startTime":1733747122396,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-io-client","duration":39,"timestamp":49378711271,"id":1032,"parentId":832,"tags":{"name":"socket.io-client","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2001,"timestamp":49378711225,"id":1031,"parentId":948,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":253555,"timestamp":49378462889,"id":999,"parentId":908,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1733747122365,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5441,"timestamp":49378711425,"id":1035,"parentId":783,"tags":{"name":"/app/components/general/IconText.jsx","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6268,"timestamp":49378711053,"id":1029,"parentId":833,"tags":{"name":"/app/components/su/components/UserBackups.jsx","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6449,"timestamp":49378711333,"id":1033,"parentId":843,"tags":{"name":"/app/components/general/ThemeSelector.jsx","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6982,"timestamp":49378711387,"id":1034,"parentId":824,"tags":{"name":"/app/components/su/components/PageCard.jsx","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":701,"timestamp":49378718874,"id":1042,"parentId":996,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":"api"},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2331,"timestamp":49378718948,"id":1044,"parentId":1022,"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":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14661,"timestamp":49378711459,"id":1036,"parentId":843,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.jsx","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":253747,"timestamp":49378472568,"id":1010,"parentId":938,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":253848,"timestamp":49378472619,"id":1011,"parentId":938,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":254458,"timestamp":49378472306,"id":1003,"parentId":802,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":254225,"timestamp":49378472706,"id":1013,"parentId":951,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":255214,"timestamp":49378472519,"id":1009,"parentId":938,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":255903,"timestamp":49378472050,"id":1000,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":255645,"timestamp":49378472664,"id":1012,"parentId":950,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1733747122375,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10168,"timestamp":49378718909,"id":1043,"parentId":882,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.js","layer":null},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10822,"timestamp":49378718627,"id":1037,"parentId":833,"tags":{"name":"/app/components/su/components/UserData.jsx","layer":null},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11086,"timestamp":49378718752,"id":1039,"parentId":823,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.jsx","layer":null},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11620,"timestamp":49378718715,"id":1038,"parentId":846,"tags":{"name":"/app/components/su/SuEnvCard.jsx","layer":null},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11538,"timestamp":49378719037,"id":1047,"parentId":882,"tags":{"name":"/app/components/general/ExpandBlock.jsx","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11917,"timestamp":49378719008,"id":1046,"parentId":872,"tags":{"name":"/app/components/admin/databases/DatabaseImage.jsx","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12241,"timestamp":49378719072,"id":1048,"parentId":873,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.jsx","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13038,"timestamp":49378718978,"id":1045,"parentId":872,"tags":{"name":"/app/components/admin/databases/DatabaseForm.jsx","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13208,"timestamp":49378719178,"id":1051,"parentId":891,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.js","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13884,"timestamp":49378719102,"id":1049,"parentId":879,"tags":{"name":"/app/components/admin/databases/TableListCard.jsx","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":258969,"timestamp":49378481503,"id":1014,"parentId":951,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":258942,"timestamp":49378481700,"id":1016,"parentId":951,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plug-2.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":259178,"timestamp":49378481616,"id":1015,"parentId":951,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":259182,"timestamp":49378481760,"id":1017,"parentId":951,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":259281,"timestamp":49378481802,"id":1018,"parentId":951,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":259297,"timestamp":49378481929,"id":1021,"parentId":952,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1733747122385,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":259536,"timestamp":49378481851,"id":1019,"parentId":952,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":259633,"timestamp":49378481889,"id":1020,"parentId":952,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1733747122384,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":21,"timestamp":49378742594,"id":1052,"parentId":913,"tags":{"name":"react-tiny-popover","layer":null},"startTime":1733747122645,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1476,"timestamp":49378742723,"id":1054,"parentId":1034,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122645,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6371,"timestamp":49378742795,"id":1056,"parentId":910,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.js","layer":null},"startTime":1733747122645,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6941,"timestamp":49378742758,"id":1055,"parentId":879,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.jsx","layer":null},"startTime":1733747122645,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":18,"timestamp":49378749988,"id":1057,"parentId":959,"tags":{"name":"xterm","layer":null},"startTime":1733747122653,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41484,"timestamp":49378711161,"id":1030,"parentId":952,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1733747122614,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2144,"timestamp":49378755407,"id":1059,"parentId":1049,"tags":{"name":"__barrel_optimize__?names=ChevronRight,DatabaseBackup,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40104,"timestamp":49378718789,"id":1040,"parentId":987,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40266,"timestamp":49378718835,"id":1041,"parentId":988,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1733747122621,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40192,"timestamp":49378719131,"id":1050,"parentId":1006,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1733747122622,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1299,"timestamp":49378760548,"id":1074,"parentId":1055,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122663,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7880,"timestamp":49378755562,"id":1061,"parentId":879,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.jsx","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8441,"timestamp":49378755605,"id":1062,"parentId":893,"tags":{"name":"/app/components/admin/databases/NewTableForm.jsx","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8955,"timestamp":49378755692,"id":1063,"parentId":882,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.jsx","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10014,"timestamp":49378755501,"id":1060,"parentId":893,"tags":{"name":"/app/components/admin/databases/CloneTableForm.jsx","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10848,"timestamp":49378755789,"id":1066,"parentId":909,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.js","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11818,"timestamp":49378755728,"id":1064,"parentId":882,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.jsx","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12441,"timestamp":49378755759,"id":1065,"parentId":882,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.jsx","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":33371,"timestamp":49378742631,"id":1053,"parentId":967,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1733747122645,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8050,"timestamp":49378768928,"id":1077,"parentId":873,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.jsx","layer":null},"startTime":1733747122672,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9795,"timestamp":49378769008,"id":1078,"parentId":903,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.jsx","layer":null},"startTime":1733747122672,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":36449,"timestamp":49378750022,"id":1058,"parentId":1031,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1733747122653,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1651,"timestamp":49378787432,"id":1081,"parentId":1061,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":33962,"timestamp":49378755920,"id":1069,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1733747122659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34010,"timestamp":49378756053,"id":1072,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1733747122659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34467,"timestamp":49378755825,"id":1067,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34656,"timestamp":49378755875,"id":1068,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1733747122658,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":35117,"timestamp":49378756013,"id":1071,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1733747122659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":35379,"timestamp":49378755964,"id":1070,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1733747122659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":35949,"timestamp":49378756084,"id":1073,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1733747122659,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":22,"timestamp":49378792205,"id":1089,"parentId":959,"tags":{"name":"xterm-addon-fit","layer":null},"startTime":1733747122695,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6807,"timestamp":49378787508,"id":1082,"parentId":905,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.jsx","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7391,"timestamp":49378787628,"id":1085,"parentId":910,"tags":{"name":"/app/components/admin/databases/TableEntryField.jsx","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8474,"timestamp":49378787592,"id":1084,"parentId":915,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.jsx","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8645,"timestamp":49378787688,"id":1087,"parentId":940,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.js","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9956,"timestamp":49378787560,"id":1083,"parentId":913,"tags":{"name":"/app/components/admin/databases/SyncDataButton.jsx","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10312,"timestamp":49378787659,"id":1086,"parentId":931,"tags":{"name":"/app/functions/frontend/submitNewUserForm.js","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11061,"timestamp":49378787714,"id":1088,"parentId":902,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.jsx","layer":null},"startTime":1733747122690,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38613,"timestamp":49378760627,"id":1075,"parentId":1003,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1733747122663,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40263,"timestamp":49378760704,"id":1076,"parentId":1003,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1733747122663,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41350,"timestamp":49378769051,"id":1079,"parentId":1054,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1733747122672,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-js","duration":41748,"timestamp":49378769092,"id":1080,"parentId":1054,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1733747122672,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4060,"timestamp":49378811644,"id":1091,"parentId":916,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.jsx","layer":null},"startTime":1733747122714,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5525,"timestamp":49378811727,"id":1092,"parentId":918,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.jsx","layer":null},"startTime":1733747122714,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":1127,"timestamp":49378817900,"id":1101,"parentId":996,"tags":{"name":"/app/package-shared/data/possibleFields.json","layer":"api"},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3267,"timestamp":49378817508,"id":1093,"parentId":1085,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3932,"timestamp":49378817578,"id":1094,"parentId":1084,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8263,"timestamp":49378817615,"id":1095,"parentId":910,"tags":{"name":"/app/functions/frontend/newEntryHandler.js","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8798,"timestamp":49378817746,"id":1097,"parentId":926,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.jsx","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9500,"timestamp":49378817778,"id":1098,"parentId":948,"tags":{"name":"/app/components/admin/media/card/MediaListCard.jsx","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10058,"timestamp":49378817811,"id":1099,"parentId":940,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.jsx","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10396,"timestamp":49378817920,"id":1102,"parentId":1026,"tags":{"name":"/app/functions/frontend/numberFormatFloat.js","layer":null},"startTime":1733747122721,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11064,"timestamp":49378817868,"id":1100,"parentId":948,"tags":{"name":"/app/components/admin/media/MediaFolderCard.jsx","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12575,"timestamp":49378817708,"id":1096,"parentId":940,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.jsx","layer":null},"startTime":1733747122720,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12665,"timestamp":49378817949,"id":1103,"parentId":1026,"tags":{"name":"/app/functions/frontend/numberFormat.js","layer":null},"startTime":1733747122721,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2525007,"timestamp":49376308233,"id":126,"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.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":43171,"timestamp":49378801681,"id":1090,"parentId":1053,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1733747122704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1511,"timestamp":49378845011,"id":1107,"parentId":1097,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Delete,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122748,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2208,"timestamp":49378845078,"id":1108,"parentId":1100,"tags":{"name":"__barrel_optimize__?names=Copy,Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122748,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6448,"timestamp":49378845114,"id":1109,"parentId":914,"tags":{"name":"/app/components/general/MetricCard.jsx","layer":null},"startTime":1733747122748,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6966,"timestamp":49378845159,"id":1110,"parentId":955,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.jsx","layer":null},"startTime":1733747122748,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34526,"timestamp":49378817983,"id":1104,"parentId":1081,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1733747122721,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8003,"timestamp":49378848744,"id":1114,"parentId":1036,"tags":{"name":"/app/layouts/components/AdminUserDropdown.jsx","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9425,"timestamp":49378848694,"id":1113,"parentId":991,"tags":{"name":"/app/components/pages/login/GithubLogin.jsx","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10498,"timestamp":49378848646,"id":1112,"parentId":991,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.jsx","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11121,"timestamp":49378848794,"id":1115,"parentId":1045,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.js","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13179,"timestamp":49378848526,"id":1111,"parentId":991,"tags":{"name":"/app/components/pages/login/FacebookSignInButton.jsx","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22048,"timestamp":49378841701,"id":1106,"parentId":1075,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1733747122744,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":16053,"timestamp":49378848835,"id":1116,"parentId":1045,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.js","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":16946,"timestamp":49378848874,"id":1117,"parentId":1063,"tags":{"name":"/app/functions/frontend/reorderField.js","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17256,"timestamp":49378848911,"id":1118,"parentId":1064,"tags":{"name":"/app/functions/frontend/addNewField.js","layer":null},"startTime":1733747122751,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":30842,"timestamp":49378841478,"id":1105,"parentId":1053,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1733747122744,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6419,"timestamp":49378866877,"id":1121,"parentId":1037,"tags":{"name":"/app/components/su/components/UserFiles.jsx","layer":null},"startTime":1733747122769,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7520,"timestamp":49378866757,"id":1120,"parentId":1037,"tags":{"name":"/app/components/su/components/UserDbShell.jsx","layer":null},"startTime":1733747122769,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2566291,"timestamp":49376308509,"id":203,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2566298,"timestamp":49376308519,"id":206,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2566302,"timestamp":49376308522,"id":207,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1276,"timestamp":49378874642,"id":1122,"parentId":1110,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122777,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2569769,"timestamp":49376308506,"id":202,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2569775,"timestamp":49376308513,"id":204,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1452,"timestamp":49378879393,"id":1123,"parentId":1114,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122782,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":33345,"timestamp":49378848973,"id":1119,"parentId":1093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1733747122752,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577168,"timestamp":49376308525,"id":208,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577190,"timestamp":49376308528,"id":209,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577461,"timestamp":49376308264,"id":136,"parentId":18,"tags":{"request":"private-next-pages/_app.js"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2578760,"timestamp":49376306981,"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.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2578286,"timestamp":49376307459,"id":21,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2578278,"timestamp":49376307472,"id":22,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577488,"timestamp":49376308268,"id":137,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577344,"timestamp":49376308426,"id":179,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577345,"timestamp":49376308428,"id":180,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577345,"timestamp":49376308432,"id":181,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577347,"timestamp":49376308435,"id":182,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577347,"timestamp":49376308438,"id":183,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577349,"timestamp":49376308441,"id":184,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577349,"timestamp":49376308445,"id":185,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577349,"timestamp":49376308448,"id":186,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577350,"timestamp":49376308451,"id":187,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577350,"timestamp":49376308455,"id":188,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577346,"timestamp":49376308463,"id":189,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577347,"timestamp":49376308466,"id":190,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577349,"timestamp":49376308470,"id":191,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577350,"timestamp":49376308473,"id":192,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577348,"timestamp":49376308480,"id":194,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577347,"timestamp":49376308486,"id":196,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577348,"timestamp":49376308490,"id":197,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577348,"timestamp":49376308493,"id":198,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577346,"timestamp":49376308500,"id":200,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577354,"timestamp":49376308497,"id":199,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577351,"timestamp":49376308503,"id":201,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577575,"timestamp":49376308285,"id":142,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577577,"timestamp":49376308288,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577577,"timestamp":49376308292,"id":144,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577547,"timestamp":49376308328,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577530,"timestamp":49376308351,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577614,"timestamp":49376308271,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577611,"timestamp":49376308278,"id":140,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577555,"timestamp":49376308341,"id":157,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577567,"timestamp":49376308334,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577568,"timestamp":49376308338,"id":156,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577565,"timestamp":49376308344,"id":158,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577548,"timestamp":49376308366,"id":165,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577537,"timestamp":49376308383,"id":170,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577606,"timestamp":49376308322,"id":151,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577601,"timestamp":49376308331,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577580,"timestamp":49376308357,"id":162,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577561,"timestamp":49376308379,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577569,"timestamp":49376308376,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577579,"timestamp":49376308369,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2577580,"timestamp":49376308373,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8834,"timestamp":49378879519,"id":1125,"parentId":1085,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.js","layer":null},"startTime":1733747122782,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9855,"timestamp":49378879465,"id":1124,"parentId":1039,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.jsx","layer":null},"startTime":1733747122782,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7542,"timestamp":49378884560,"id":1132,"parentId":1048,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.jsx","layer":null},"startTime":1733747122787,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7971,"timestamp":49378884505,"id":1131,"parentId":1048,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.jsx","layer":null},"startTime":1733747122787,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8826,"timestamp":49378884290,"id":1129,"parentId":1048,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.jsx","layer":null},"startTime":1733747122787,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10188,"timestamp":49378884448,"id":1130,"parentId":1048,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.jsx","layer":null},"startTime":1733747122787,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5055,"timestamp":49378895026,"id":1134,"parentId":1048,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.jsx","layer":null},"startTime":1733747122798,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5518,"timestamp":49378895125,"id":1135,"parentId":1048,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.jsx","layer":null},"startTime":1733747122798,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1676,"timestamp":49378900862,"id":1137,"parentId":1124,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122803,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24535,"timestamp":49378879601,"id":1127,"parentId":1107,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/delete.js","layer":null},"startTime":1733747122782,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24870,"timestamp":49378879644,"id":1128,"parentId":1108,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1733747122782,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25153,"timestamp":49378879553,"id":1126,"parentId":1107,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1733747122782,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-js","duration":4427,"timestamp":49378901089,"id":1140,"parentId":1096,"tags":{"name":"/app/functions/frontend/addNewIndex.js","layer":null},"startTime":1733747122804,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2598067,"timestamp":49376308275,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8190,"timestamp":49378901050,"id":1139,"parentId":1062,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.jsx","layer":null},"startTime":1733747122804,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9136,"timestamp":49378900990,"id":1138,"parentId":1064,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.jsx","layer":null},"startTime":1733747122804,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23945,"timestamp":49378889876,"id":1133,"parentId":1106,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1733747122792,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4518,"timestamp":49378910751,"id":1143,"parentId":1048,"tags":{"name":"/app/components/general/Modal.jsx","layer":null},"startTime":1733747122813,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6563,"timestamp":49378910714,"id":1142,"parentId":1085,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.jsx","layer":null},"startTime":1733747122813,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7233,"timestamp":49378910605,"id":1141,"parentId":1085,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.jsx","layer":null},"startTime":1733747122813,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26236,"timestamp":49378895210,"id":1136,"parentId":1122,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1733747122798,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":3467,"timestamp":49378922085,"id":1147,"parentId":1098,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.jsx","layer":null},"startTime":1733747122825,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4074,"timestamp":49378921896,"id":1144,"parentId":1083,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.js","layer":null},"startTime":1733747122824,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5019,"timestamp":49378921997,"id":1145,"parentId":1098,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.jsx","layer":null},"startTime":1733747122825,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":23,"timestamp":49378927228,"id":1151,"parentId":1143,"tags":{"name":"react-dom/client","layer":null},"startTime":1733747122830,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6804,"timestamp":49378922120,"id":1148,"parentId":1098,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.jsx","layer":null},"startTime":1733747122825,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8104,"timestamp":49378922042,"id":1146,"parentId":1099,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.jsx","layer":null},"startTime":1733747122825,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":18,"timestamp":49378930760,"id":1152,"parentId":1039,"tags":{"name":"@tinymce/tinymce-react","layer":null},"startTime":1733747122833,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1151,"timestamp":49378932164,"id":1153,"parentId":1147,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122835,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13276,"timestamp":49378922197,"id":1150,"parentId":1137,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1733747122825,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13573,"timestamp":49378922151,"id":1149,"parentId":1137,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1733747122825,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2628214,"timestamp":49376308282,"id":141,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2628164,"timestamp":49376308347,"id":159,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2628182,"timestamp":49376308354,"id":161,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2628231,"timestamp":49376308311,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2628222,"timestamp":49376308325,"id":152,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2628252,"timestamp":49376308299,"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%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4039,"timestamp":49378934064,"id":1155,"parentId":1124,"tags":{"name":"/app/components/su/components/RichText/fns.js","layer":null},"startTime":1733747122837,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":1840,"timestamp":49378938423,"id":1157,"parentId":1121,"tags":{"name":"/app/components/su/components/UserFolder.jsx","layer":null},"startTime":1733747122841,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":2513,"timestamp":49378938177,"id":1156,"parentId":1121,"tags":{"name":"/app/components/su/components/UserSingleFile.jsx","layer":null},"startTime":1733747122841,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10026,"timestamp":49378932234,"id":1154,"parentId":1133,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1733747122835,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2634909,"timestamp":49376307435,"id":20,"parentId":18,"tags":{"request":"private-next-pages/_document.js"},"startTime":1733747120210,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":2118,"timestamp":49378940824,"id":1159,"parentId":1120,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.jsx","layer":null},"startTime":1733747122843,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1504,"timestamp":49378943048,"id":1160,"parentId":1157,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122846,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2278,"timestamp":49378943107,"id":1161,"parentId":1156,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122846,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2640709,"timestamp":49376308516,"id":205,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10488,"timestamp":49378939230,"id":1158,"parentId":1153,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1733747122842,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2641512,"timestamp":49376308360,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2641521,"timestamp":49376308363,"id":164,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":3940,"timestamp":49378948610,"id":1162,"parentId":1124,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.jsx","layer":null},"startTime":1733747122851,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":2954,"timestamp":49378950514,"id":1163,"parentId":1142,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.jsx","layer":null},"startTime":1733747122853,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3480,"timestamp":49378950590,"id":1164,"parentId":1146,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.js","layer":null},"startTime":1733747122853,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1640,"timestamp":49378954186,"id":1165,"parentId":1141,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.js","layer":null},"startTime":1733747122857,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1219,"timestamp":49378955936,"id":1166,"parentId":1162,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":953,"timestamp":49378957352,"id":1167,"parentId":1163,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747122860,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2649967,"timestamp":49376308476,"id":193,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2649971,"timestamp":49376308483,"id":195,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1319,"timestamp":49378959526,"id":1168,"parentId":1167,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1733747122862,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1896,"timestamp":49378959599,"id":1169,"parentId":1167,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1733747122862,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1163,"timestamp":49378960954,"id":1171,"parentId":1165,"tags":{"name":"/app/functions/frontend/handleCopyHTML.js","layer":null},"startTime":1733747122864,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1723,"timestamp":49378960902,"id":1170,"parentId":1165,"tags":{"name":"/app/functions/frontend/handleEditHTML.js","layer":null},"startTime":1733747122863,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1570,"timestamp":49378961547,"id":1172,"parentId":1165,"tags":{"name":"/app/functions/frontend/handleEmbed.js","layer":null},"startTime":1733747122864,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":1338,"timestamp":49378965513,"id":1173,"parentId":1171,"tags":{"name":"/app/components/general/EmbedPopupContent.jsx","layer":null},"startTime":1733747122868,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":1561,"timestamp":49378966122,"id":1174,"parentId":1170,"tags":{"name":"/app/components/general/EditHTMLPopupContent.jsx","layer":null},"startTime":1733747122869,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":17,"timestamp":49378969042,"id":1175,"parentId":1174,"tags":{"name":"html-prettify","layer":null},"startTime":1733747122872,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2660805,"timestamp":49376308304,"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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2660824,"timestamp":49376308295,"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%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.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2660806,"timestamp":49376308319,"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%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":2660813,"timestamp":49376308315,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.jsx&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&middlewareConfigBase64=e30%3D!"},"startTime":1733747120211,"traceId":"a901697cbe7cbd9f"},{"name":"make","duration":2662617,"timestamp":49376306742,"id":18,"parentId":16,"tags":{},"startTime":1733747120209,"traceId":"a901697cbe7cbd9f"},{"name":"get-entries","duration":986,"timestamp":49378970513,"id":1177,"parentId":1176,"tags":{},"startTime":1733747122873,"traceId":"a901697cbe7cbd9f"},{"name":"node-file-trace-plugin","duration":17707934,"timestamp":49378982006,"id":1178,"parentId":1176,"tags":{"traceEntryCount":"382"},"startTime":1733747122885,"traceId":"a901697cbe7cbd9f"},{"name":"collect-traced-files","duration":25202,"timestamp":49396689960,"id":1179,"parentId":1176,"tags":{},"startTime":1733747140593,"traceId":"a901697cbe7cbd9f"},{"name":"finish-modules","duration":17744912,"timestamp":49378970270,"id":1176,"parentId":17,"tags":{},"startTime":1733747122873,"traceId":"a901697cbe7cbd9f"},{"name":"chunk-graph","duration":40092,"timestamp":49396781000,"id":1181,"parentId":1180,"tags":{},"startTime":1733747140684,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-modules","duration":32,"timestamp":49396821240,"id":1183,"parentId":1180,"tags":{},"startTime":1733747140724,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-chunks","duration":50720,"timestamp":49396821359,"id":1184,"parentId":1180,"tags":{},"startTime":1733747140724,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-tree","duration":138,"timestamp":49396872200,"id":1185,"parentId":1180,"tags":{},"startTime":1733747140775,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-chunk-modules","duration":88703,"timestamp":49396872445,"id":1186,"parentId":1180,"tags":{},"startTime":1733747140775,"traceId":"a901697cbe7cbd9f"},{"name":"optimize","duration":140150,"timestamp":49396821180,"id":1182,"parentId":1180,"tags":{},"startTime":1733747140724,"traceId":"a901697cbe7cbd9f"},{"name":"module-hash","duration":40527,"timestamp":49396980461,"id":1187,"parentId":1180,"tags":{},"startTime":1733747140883,"traceId":"a901697cbe7cbd9f"},{"name":"code-generation","duration":410515,"timestamp":49397021082,"id":1188,"parentId":1180,"tags":{},"startTime":1733747140924,"traceId":"a901697cbe7cbd9f"},{"name":"hash","duration":22611,"timestamp":49397439792,"id":1189,"parentId":1180,"tags":{},"startTime":1733747141342,"traceId":"a901697cbe7cbd9f"},{"name":"code-generation-jobs","duration":924,"timestamp":49397462401,"id":1190,"parentId":1180,"tags":{},"startTime":1733747141365,"traceId":"a901697cbe7cbd9f"},{"name":"module-assets","duration":460,"timestamp":49397463203,"id":1191,"parentId":1180,"tags":{},"startTime":1733747141366,"traceId":"a901697cbe7cbd9f"},{"name":"create-chunk-assets","duration":35099,"timestamp":49397463678,"id":1192,"parentId":1180,"tags":{},"startTime":1733747141366,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":153969,"timestamp":49397543035,"id":1195,"parentId":1193,"tags":{"name":"../pages/_document.js","cache":"MISS"},"startTime":1733747141446,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":153698,"timestamp":49397543378,"id":1196,"parentId":1193,"tags":{"name":"../pages/404.js","cache":"MISS"},"startTime":1733747141446,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":152922,"timestamp":49397544187,"id":1197,"parentId":1193,"tags":{"name":"../pages/500.js","cache":"MISS"},"startTime":1733747141447,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":156983,"timestamp":49397540161,"id":1194,"parentId":1193,"tags":{"name":"../pages/_error.js","cache":"MISS"},"startTime":1733747141443,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":152324,"timestamp":49397544855,"id":1198,"parentId":1193,"tags":{"name":"../pages/api/addAdminUserUser.js","cache":"MISS"},"startTime":1733747141447,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":151671,"timestamp":49397545545,"id":1199,"parentId":1193,"tags":{"name":"../pages/api/addApiKey.js","cache":"MISS"},"startTime":1733747141448,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":151246,"timestamp":49397546005,"id":1200,"parentId":1193,"tags":{"name":"../pages/api/acceptUserInvitation.js","cache":"MISS"},"startTime":1733747141449,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":146750,"timestamp":49397550532,"id":1202,"parentId":1193,"tags":{"name":"../pages/api/addDbUser.js","cache":"MISS"},"startTime":1733747141453,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":147166,"timestamp":49397550147,"id":1201,"parentId":1193,"tags":{"name":"../pages/api/addNewMediaFolder.js","cache":"MISS"},"startTime":1733747141453,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":146649,"timestamp":49397550702,"id":1203,"parentId":1193,"tags":{"name":"../pages/api/addTableEntry.js","cache":"MISS"},"startTime":1733747141453,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":146128,"timestamp":49397551249,"id":1205,"parentId":1193,"tags":{"name":"../pages/api/addUsersTableToDatabase.js","cache":"MISS"},"startTime":1733747141454,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":146416,"timestamp":49397550987,"id":1204,"parentId":1193,"tags":{"name":"../pages/api/addSocialLogin.js","cache":"MISS"},"startTime":1733747141454,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145952,"timestamp":49397551470,"id":1206,"parentId":1193,"tags":{"name":"../pages/api/addUserUser.js","cache":"MISS"},"startTime":1733747141454,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145292,"timestamp":49397552151,"id":1209,"parentId":1193,"tags":{"name":"../pages/api/admin/clearErrorLogs.js","cache":"MISS"},"startTime":1733747141455,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145787,"timestamp":49397551687,"id":1207,"parentId":1193,"tags":{"name":"../pages/api/addUserTable.js","cache":"MISS"},"startTime":1733747141454,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145549,"timestamp":49397551950,"id":1208,"parentId":1193,"tags":{"name":"../pages/api/admin/addUserBackup.js","cache":"MISS"},"startTime":1733747141455,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145049,"timestamp":49397552474,"id":1211,"parentId":1193,"tags":{"name":"../pages/api/admin/clientError.js","cache":"MISS"},"startTime":1733747141455,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145248,"timestamp":49397552300,"id":1210,"parentId":1193,"tags":{"name":"../pages/api/admin/createNewBackup.js","cache":"MISS"},"startTime":1733747141455,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144383,"timestamp":49397553183,"id":1214,"parentId":1193,"tags":{"name":"../pages/api/admin/getUserBackups.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144940,"timestamp":49397552646,"id":1212,"parentId":1193,"tags":{"name":"../pages/api/admin/docs/[action].js","cache":"MISS"},"startTime":1733747141455,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144302,"timestamp":49397553303,"id":1215,"parentId":1193,"tags":{"name":"../pages/api/admin/grabBackups.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144713,"timestamp":49397552918,"id":1213,"parentId":1193,"tags":{"name":"../pages/api/admin/getTablesForUserDatabase.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144077,"timestamp":49397553575,"id":1217,"parentId":1193,"tags":{"name":"../pages/api/admin/grabErrorLogs.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144242,"timestamp":49397553427,"id":1216,"parentId":1193,"tags":{"name":"../pages/api/admin/getUserData.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143995,"timestamp":49397553693,"id":1218,"parentId":1193,"tags":{"name":"../pages/api/admin/grabFile.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143696,"timestamp":49397554014,"id":1220,"parentId":1193,"tags":{"name":"../pages/api/admin/updateEnv.js","cache":"MISS"},"startTime":1733747141457,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143582,"timestamp":49397554148,"id":1221,"parentId":1193,"tags":{"name":"../pages/api/changeDbUserPassword.js","cache":"MISS"},"startTime":1733747141457,"traceId":"a901697cbe7cbd9f"}] +[{"name":"minify-js","duration":143605,"timestamp":49397554461,"id":1223,"parentId":1193,"tags":{"name":"../pages/api/admin/loginSuUser.js","cache":"MISS"},"startTime":1733747141457,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144285,"timestamp":49397553819,"id":1219,"parentId":1193,"tags":{"name":"../pages/api/admin/runUserDbQuery.js","cache":"MISS"},"startTime":1733747141456,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143835,"timestamp":49397554298,"id":1222,"parentId":1193,"tags":{"name":"../pages/api/checkDuplicateData.js","cache":"MISS"},"startTime":1733747141457,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143505,"timestamp":49397554647,"id":1224,"parentId":1193,"tags":{"name":"../pages/api/checkExistingFolder.js","cache":"MISS"},"startTime":1733747141457,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143366,"timestamp":49397554806,"id":1225,"parentId":1193,"tags":{"name":"../pages/api/clientSideAuth.js","cache":"MISS"},"startTime":1733747141457,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142566,"timestamp":49397555632,"id":1229,"parentId":1193,"tags":{"name":"../pages/api/connect.js","cache":"MISS"},"startTime":1733747141458,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143288,"timestamp":49397554938,"id":1226,"parentId":1193,"tags":{"name":"../pages/api/connect/disconnect.js","cache":"MISS"},"startTime":1733747141458,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142811,"timestamp":49397555439,"id":1228,"parentId":1193,"tags":{"name":"../pages/api/connect/verify.js","cache":"MISS"},"startTime":1733747141458,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143058,"timestamp":49397555213,"id":1227,"parentId":1193,"tags":{"name":"../pages/api/connect/handshake.js","cache":"MISS"},"startTime":1733747141458,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142504,"timestamp":49397555789,"id":1230,"parentId":1193,"tags":{"name":"../pages/api/contact.js","cache":"MISS"},"startTime":1733747141458,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142006,"timestamp":49397556307,"id":1233,"parentId":1193,"tags":{"name":"../pages/api/deleteInvitation.js","cache":"MISS"},"startTime":1733747141459,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142421,"timestamp":49397555919,"id":1231,"parentId":1193,"tags":{"name":"../pages/api/deleteDbUser.js","cache":"MISS"},"startTime":1733747141459,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141925,"timestamp":49397556436,"id":1234,"parentId":1193,"tags":{"name":"../pages/api/createUserDatabase.js","cache":"MISS"},"startTime":1733747141459,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142293,"timestamp":49397556094,"id":1232,"parentId":1193,"tags":{"name":"../pages/api/deleteApiKey.js","cache":"MISS"},"startTime":1733747141459,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141777,"timestamp":49397556654,"id":1235,"parentId":1193,"tags":{"name":"../pages/api/deleteTableEntry.js","cache":"MISS"},"startTime":1733747141459,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141571,"timestamp":49397556885,"id":1236,"parentId":1193,"tags":{"name":"../pages/api/deleteUser.js","cache":"MISS"},"startTime":1733747141459,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141378,"timestamp":49397557103,"id":1237,"parentId":1193,"tags":{"name":"../pages/api/deleteUserDatabase.js","cache":"MISS"},"startTime":1733747141460,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141237,"timestamp":49397557271,"id":1238,"parentId":1193,"tags":{"name":"../pages/api/deleteUserMedia.js","cache":"MISS"},"startTime":1733747141460,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":140816,"timestamp":49397557712,"id":1240,"parentId":1193,"tags":{"name":"../pages/api/deleteUserUser.js","cache":"MISS"},"startTime":1733747141460,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":140702,"timestamp":49397557849,"id":1241,"parentId":1193,"tags":{"name":"../pages/api/downloadDatabaseSchema.js","cache":"MISS"},"startTime":1733747141460,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141072,"timestamp":49397557506,"id":1239,"parentId":1193,"tags":{"name":"../pages/api/deleteUserTable.js","cache":"MISS"},"startTime":1733747141460,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":140577,"timestamp":49397558024,"id":1242,"parentId":1193,"tags":{"name":"../pages/api/deleteMediaFolder.js","cache":"MISS"},"startTime":1733747141461,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":140431,"timestamp":49397558192,"id":1243,"parentId":1193,"tags":{"name":"../pages/api/exportDatabase.js","cache":"MISS"},"startTime":1733747141461,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":140313,"timestamp":49397558342,"id":1244,"parentId":1193,"tags":{"name":"../pages/api/get-authorized-databases.js","cache":"MISS"},"startTime":1733747141461,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":140128,"timestamp":49397558549,"id":1245,"parentId":1193,"tags":{"name":"../pages/api/getDatabaseTables.js","cache":"MISS"},"startTime":1733747141461,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141692,"timestamp":49397558922,"id":1247,"parentId":1193,"tags":{"name":"../pages/api/getDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143823,"timestamp":49397558710,"id":1246,"parentId":1193,"tags":{"name":"../pages/api/fetch-entries-basic.js","cache":"MISS"},"startTime":1733747141461,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143327,"timestamp":49397559272,"id":1249,"parentId":1193,"tags":{"name":"../pages/api/getUserDatabases.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145330,"timestamp":49397559089,"id":1248,"parentId":1193,"tags":{"name":"../pages/api/getDiskUsage.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":146059,"timestamp":49397559415,"id":1250,"parentId":1193,"tags":{"name":"../pages/api/getDelegatedDatabases.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":147098,"timestamp":49397559703,"id":1252,"parentId":1193,"tags":{"name":"../pages/api/getUserMedia.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":147385,"timestamp":49397559563,"id":1251,"parentId":1193,"tags":{"name":"../pages/api/getUserDatabaseTables.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":147967,"timestamp":49397560250,"id":1255,"parentId":1193,"tags":{"name":"../pages/api/healthcheck.js","cache":"MISS"},"startTime":1733747141463,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":150433,"timestamp":49397559834,"id":1253,"parentId":1193,"tags":{"name":"../pages/api/getUserSchemaData.js","cache":"MISS"},"startTime":1733747141462,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":150999,"timestamp":49397560357,"id":1256,"parentId":1193,"tags":{"name":"../pages/api/importDatabaseSchema.js","cache":"MISS"},"startTime":1733747141463,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":154195,"timestamp":49397559994,"id":1254,"parentId":1193,"tags":{"name":"../pages/api/importDatabase.js","cache":"MISS"},"startTime":1733747141463,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":155954,"timestamp":49397560813,"id":1258,"parentId":1193,"tags":{"name":"../pages/api/loginUser.js","cache":"MISS"},"startTime":1733747141463,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":155965,"timestamp":49397561147,"id":1259,"parentId":1193,"tags":{"name":"../pages/api/media/addPrivateMedia.js","cache":"MISS"},"startTime":1733747141464,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":156838,"timestamp":49397560547,"id":1257,"parentId":1193,"tags":{"name":"../pages/api/infiniteScroll.js","cache":"MISS"},"startTime":1733747141463,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":157188,"timestamp":49397561341,"id":1260,"parentId":1193,"tags":{"name":"../pages/api/media/getPrivateMedia.js","cache":"MISS"},"startTime":1733747141464,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":159373,"timestamp":49397561493,"id":1261,"parentId":1193,"tags":{"name":"../pages/api/logoutUser.js","cache":"MISS"},"startTime":1733747141464,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":159305,"timestamp":49397561964,"id":1264,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/get.js","cache":"MISS"},"startTime":1733747141465,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":160430,"timestamp":49397561630,"id":1262,"parentId":1193,"tags":{"name":"../pages/api/purgeDb.js","cache":"MISS"},"startTime":1733747141464,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":160585,"timestamp":49397561801,"id":1263,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/get-schema.js","cache":"MISS"},"startTime":1733747141464,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":162553,"timestamp":49397562319,"id":1266,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/update-schema-from-single-database.js","cache":"MISS"},"startTime":1733747141465,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":166041,"timestamp":49397562454,"id":1267,"parentId":1193,"tags":{"name":"../pages/api/reAuthenticateUser.js","cache":"MISS"},"startTime":1733747141465,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":166368,"timestamp":49397562652,"id":1268,"parentId":1193,"tags":{"name":"../pages/api/registerUser.js","cache":"MISS"},"startTime":1733747141465,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":167332,"timestamp":49397562118,"id":1265,"parentId":1193,"tags":{"name":"../pages/api/queryEntriesSearchTerm.js","cache":"MISS"},"startTime":1733747141465,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":168667,"timestamp":49397563432,"id":1272,"parentId":1193,"tags":{"name":"../pages/api/resetPassword.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":169915,"timestamp":49397563300,"id":1271,"parentId":1193,"tags":{"name":"../pages/api/resetDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":170444,"timestamp":49397562918,"id":1269,"parentId":1193,"tags":{"name":"../pages/api/refreshEntry.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":172235,"timestamp":49397563115,"id":1270,"parentId":1193,"tags":{"name":"../pages/api/renameMedia.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":173127,"timestamp":49397563744,"id":1274,"parentId":1193,"tags":{"name":"../pages/api/sendPasswordResetLink.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":173459,"timestamp":49397564037,"id":1276,"parentId":1193,"tags":{"name":"../pages/api/social-login/google-auth.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":174468,"timestamp":49397564177,"id":1277,"parentId":1193,"tags":{"name":"../pages/api/social-login/facebook-auth.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":175075,"timestamp":49397563878,"id":1275,"parentId":1193,"tags":{"name":"../pages/api/sendEmailVerificationLink.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":175507,"timestamp":49397564303,"id":1278,"parentId":1193,"tags":{"name":"../pages/api/social-login/utils/checkEmail.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":176635,"timestamp":49397563545,"id":1273,"parentId":1193,"tags":{"name":"../pages/api/runUserDbQuery.js","cache":"MISS"},"startTime":1733747141466,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":176534,"timestamp":49397564423,"id":1279,"parentId":1193,"tags":{"name":"../pages/api/social-login/utils/getEmailFromSocialId.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":176612,"timestamp":49397564654,"id":1280,"parentId":1193,"tags":{"name":"../pages/api/social-login/utils/checkSocialId.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":177306,"timestamp":49397564768,"id":1281,"parentId":1193,"tags":{"name":"../pages/api/sql-users/create.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":178416,"timestamp":49397565233,"id":1284,"parentId":1193,"tags":{"name":"../pages/api/sql-users/update.js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":178527,"timestamp":49397565440,"id":1285,"parentId":1193,"tags":{"name":"../pages/api/stream/[path].js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":179407,"timestamp":49397564893,"id":1282,"parentId":1193,"tags":{"name":"../pages/api/social-login/github-auth.js","cache":"MISS"},"startTime":1733747141467,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":179628,"timestamp":49397565713,"id":1287,"parentId":1193,"tags":{"name":"../pages/api/unsubscribe.js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":181453,"timestamp":49397565079,"id":1283,"parentId":1193,"tags":{"name":"../pages/api/sql-users/delete.js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":180954,"timestamp":49397565895,"id":1289,"parentId":1193,"tags":{"name":"../pages/api/test/cors.js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":181897,"timestamp":49397565793,"id":1288,"parentId":1193,"tags":{"name":"../pages/api/test/mail.js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":183922,"timestamp":49397566002,"id":1290,"parentId":1193,"tags":{"name":"../pages/api/updateAdminUserAccess.js","cache":"MISS"},"startTime":1733747141469,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":184942,"timestamp":49397565531,"id":1286,"parentId":1193,"tags":{"name":"../pages/api/sync-table-data.js","cache":"MISS"},"startTime":1733747141468,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":185835,"timestamp":49397566109,"id":1291,"parentId":1193,"tags":{"name":"../pages/api/updateClonedTableForeignKeys.js","cache":"MISS"},"startTime":1733747141469,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":189164,"timestamp":49397566242,"id":1292,"parentId":1193,"tags":{"name":"../pages/api/updateDbSchemaDataForUser.js","cache":"MISS"},"startTime":1733747141469,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":191423,"timestamp":49397566462,"id":1293,"parentId":1193,"tags":{"name":"../pages/api/updateDbUser.js","cache":"MISS"},"startTime":1733747141469,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":194585,"timestamp":49397566618,"id":1294,"parentId":1193,"tags":{"name":"../pages/api/updateTableEntry.js","cache":"MISS"},"startTime":1733747141469,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":195634,"timestamp":49397566826,"id":1295,"parentId":1193,"tags":{"name":"../pages/api/updateUser.js","cache":"MISS"},"startTime":1733747141469,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":199540,"timestamp":49397567035,"id":1296,"parentId":1193,"tags":{"name":"../pages/api/updateUserDatabase.js","cache":"MISS"},"startTime":1733747141470,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":199291,"timestamp":49397567576,"id":1299,"parentId":1193,"tags":{"name":"../pages/api/user-schema/replace-database-schema.js","cache":"MISS"},"startTime":1733747141470,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":200478,"timestamp":49397567238,"id":1297,"parentId":1193,"tags":{"name":"../pages/api/updateUserTable.js","cache":"MISS"},"startTime":1733747141470,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":201540,"timestamp":49397567430,"id":1298,"parentId":1193,"tags":{"name":"../pages/api/updateUserUser.js","cache":"MISS"},"startTime":1733747141470,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":205786,"timestamp":49397568245,"id":1303,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/github-login.js","cache":"MISS"},"startTime":1733747141471,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":206992,"timestamp":49397567698,"id":1300,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/delete-user.js","cache":"MISS"},"startTime":1733747141470,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":207561,"timestamp":49397567861,"id":1301,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/add-user.js","cache":"MISS"},"startTime":1733747141470,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":207373,"timestamp":49397568094,"id":1302,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/get-user.js","cache":"MISS"},"startTime":1733747141471,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":209248,"timestamp":49397568576,"id":1305,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/google-login.js","cache":"MISS"},"startTime":1733747141471,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":210767,"timestamp":49397568688,"id":1306,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/grab-google-user-from-token.js","cache":"MISS"},"startTime":1733747141471,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":214941,"timestamp":49397568409,"id":1304,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/login-user.js","cache":"MISS"},"startTime":1733747141471,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":214759,"timestamp":49397568789,"id":1307,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/reauth-user.js","cache":"MISS"},"startTime":1733747141471,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":214815,"timestamp":49397569442,"id":1311,"parentId":1193,"tags":{"name":"../pages/_app.js","cache":"MISS"},"startTime":1733747141472,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":216093,"timestamp":49397569353,"id":1310,"parentId":1193,"tags":{"name":"../pages/api/webhooks/github-push.js","cache":"MISS"},"startTime":1733747141472,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":216566,"timestamp":49397569484,"id":1312,"parentId":1193,"tags":{"name":"../pages/about.js","cache":"MISS"},"startTime":1733747141472,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":217763,"timestamp":49397568948,"id":1308,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/send-email-code.js","cache":"MISS"},"startTime":1733747141472,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":221439,"timestamp":49397569125,"id":1309,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/update-user.js","cache":"MISS"},"startTime":1733747141472,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":227342,"timestamp":49397569670,"id":1313,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/api-keys.js","cache":"MISS"},"startTime":1733747141472,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":228442,"timestamp":49397571591,"id":1316,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/edit-database.js","cache":"MISS"},"startTime":1733747141474,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":230112,"timestamp":49397570344,"id":1314,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/connect.js","cache":"MISS"},"startTime":1733747141473,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":231637,"timestamp":49397571091,"id":1315,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/connect.js","cache":"MISS"},"startTime":1733747141474,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":235747,"timestamp":49397572321,"id":1318,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single].js","cache":"MISS"},"startTime":1733747141475,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":239192,"timestamp":49397571931,"id":1317,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/shell.js","cache":"MISS"},"startTime":1733747141475,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":239745,"timestamp":49397573139,"id":1320,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","cache":"MISS"},"startTime":1733747141476,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":244075,"timestamp":49397572642,"id":1319,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/schema.js","cache":"MISS"},"startTime":1733747141475,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":244525,"timestamp":49397573536,"id":1321,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","cache":"MISS"},"startTime":1733747141476,"traceId":"a901697cbe7cbd9f"}] +[{"name":"minify-js","duration":245808,"timestamp":49397573917,"id":1322,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","cache":"MISS"},"startTime":1733747141477,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":247141,"timestamp":49397575486,"id":1325,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","cache":"MISS"},"startTime":1733747141478,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":247993,"timestamp":49397575633,"id":1326,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","cache":"MISS"},"startTime":1733747141478,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":250453,"timestamp":49397574221,"id":1323,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","cache":"MISS"},"startTime":1733747141477,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":250030,"timestamp":49397576684,"id":1329,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user].js","cache":"MISS"},"startTime":1733747141479,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":256832,"timestamp":49397576396,"id":1328,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables.js","cache":"MISS"},"startTime":1733747141479,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":260504,"timestamp":49397574648,"id":1324,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table].js","cache":"MISS"},"startTime":1733747141477,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":254017,"timestamp":49397582514,"id":1332,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases.js","cache":"MISS"},"startTime":1733747141485,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":263656,"timestamp":49397576766,"id":1330,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","cache":"MISS"},"startTime":1733747141479,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":265030,"timestamp":49397575799,"id":1327,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/add-table.js","cache":"MISS"},"startTime":1733747141478,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":259240,"timestamp":49397583145,"id":1335,"parentId":1193,"tags":{"name":"../pages/admin/[user_id].js","cache":"MISS"},"startTime":1733747141486,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":263252,"timestamp":49397582960,"id":1334,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/add-database.js","cache":"MISS"},"startTime":1733747141486,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":270549,"timestamp":49397577246,"id":1331,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-user.js","cache":"MISS"},"startTime":1733747141480,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":265698,"timestamp":49397582609,"id":1333,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users.js","cache":"MISS"},"startTime":1733747141485,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":266030,"timestamp":49397583253,"id":1336,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/settings.js","cache":"MISS"},"startTime":1733747141486,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":268095,"timestamp":49397584009,"id":1338,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/media.js","cache":"MISS"},"startTime":1733747141487,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":269948,"timestamp":49397584263,"id":1339,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/media/[...folder].js","cache":"MISS"},"startTime":1733747141487,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":274059,"timestamp":49397583618,"id":1337,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/add-user.js","cache":"MISS"},"startTime":1733747141486,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":276513,"timestamp":49397584579,"id":1340,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/schema.js","cache":"MISS"},"startTime":1733747141487,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":276588,"timestamp":49397584943,"id":1341,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database]/[user].js","cache":"MISS"},"startTime":1733747141488,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":277778,"timestamp":49397585314,"id":1342,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database].js","cache":"MISS"},"startTime":1733747141488,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":277393,"timestamp":49397586455,"id":1345,"parentId":1193,"tags":{"name":"../pages/admin.js","cache":"MISS"},"startTime":1733747141489,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":278977,"timestamp":49397585635,"id":1343,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/databases.js","cache":"MISS"},"startTime":1733747141488,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":279638,"timestamp":49397586955,"id":1348,"parentId":1193,"tags":{"name":"../pages/api/fetch-media.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":282408,"timestamp":49397586820,"id":1347,"parentId":1193,"tags":{"name":"../pages/api/exportTableData.js","cache":"MISS"},"startTime":1733747141489,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":285036,"timestamp":49397586620,"id":1346,"parentId":1193,"tags":{"name":"../pages/api/addUserMedia.js","cache":"MISS"},"startTime":1733747141489,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":285972,"timestamp":49397585987,"id":1344,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users.js","cache":"MISS"},"startTime":1733747141489,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":286115,"timestamp":49397587038,"id":1349,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/add-file.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":287452,"timestamp":49397587474,"id":1352,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/post.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":288029,"timestamp":49397587187,"id":1350,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/get-private-file.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":290140,"timestamp":49397587834,"id":1354,"parentId":1193,"tags":{"name":"../pages/blog.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":291195,"timestamp":49397587310,"id":1351,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/add-image.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":291952,"timestamp":49397588007,"id":1355,"parentId":1193,"tags":{"name":"../pages/contact.js","cache":"MISS"},"startTime":1733747141491,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":292176,"timestamp":49397588588,"id":1357,"parentId":1193,"tags":{"name":"../pages/docs/[page].js","cache":"MISS"},"startTime":1733747141491,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":293295,"timestamp":49397587665,"id":1353,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/delete-file.js","cache":"MISS"},"startTime":1733747141490,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":294430,"timestamp":49397589489,"id":1360,"parentId":1193,"tags":{"name":"../pages/docs/[page]/[sub-page].js","cache":"MISS"},"startTime":1733747141492,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":295678,"timestamp":49397588288,"id":1356,"parentId":1193,"tags":{"name":"../pages/docs.js","cache":"MISS"},"startTime":1733747141491,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":296482,"timestamp":49397589093,"id":1359,"parentId":1193,"tags":{"name":"../pages/index.js","cache":"MISS"},"startTime":1733747141492,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":300288,"timestamp":49397588756,"id":1358,"parentId":1193,"tags":{"name":"../pages/login.js","cache":"MISS"},"startTime":1733747141491,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":299788,"timestamp":49397590087,"id":1362,"parentId":1193,"tags":{"name":"../pages/privacy.js","cache":"MISS"},"startTime":1733747141493,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":302360,"timestamp":49397590924,"id":1365,"parentId":1193,"tags":{"name":"../pages/redirect.js","cache":"MISS"},"startTime":1733747141494,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":303213,"timestamp":49397590392,"id":1363,"parentId":1193,"tags":{"name":"../pages/logout.js","cache":"MISS"},"startTime":1733747141493,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":306556,"timestamp":49397591093,"id":1366,"parentId":1193,"tags":{"name":"../pages/su/backups.js","cache":"MISS"},"startTime":1733747141494,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":307421,"timestamp":49397590624,"id":1364,"parentId":1193,"tags":{"name":"../pages/email-verification.js","cache":"MISS"},"startTime":1733747141493,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":308417,"timestamp":49397591596,"id":1368,"parentId":1193,"tags":{"name":"../pages/su/docs/create-page.js","cache":"MISS"},"startTime":1733747141494,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":310504,"timestamp":49397589666,"id":1361,"parentId":1193,"tags":{"name":"../pages/create-account.js","cache":"MISS"},"startTime":1733747141492,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":310310,"timestamp":49397591985,"id":1370,"parentId":1193,"tags":{"name":"../pages/su/docs/edit-page.js","cache":"MISS"},"startTime":1733747141495,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":310922,"timestamp":49397591756,"id":1369,"parentId":1193,"tags":{"name":"../pages/su/console.js","cache":"MISS"},"startTime":1733747141494,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":311493,"timestamp":49397591335,"id":1367,"parentId":1193,"tags":{"name":"../pages/send-password-reset-link.js","cache":"MISS"},"startTime":1733747141494,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":312027,"timestamp":49397592433,"id":1372,"parentId":1193,"tags":{"name":"../pages/su/docs.js","cache":"MISS"},"startTime":1733747141495,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":313918,"timestamp":49397593041,"id":1375,"parentId":1193,"tags":{"name":"../pages/su/docs/pages.js","cache":"MISS"},"startTime":1733747141496,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":314389,"timestamp":49397592821,"id":1374,"parentId":1193,"tags":{"name":"../pages/su/envar.js","cache":"MISS"},"startTime":1733747141495,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":315904,"timestamp":49397592579,"id":1373,"parentId":1193,"tags":{"name":"../pages/su/error-logs.js","cache":"MISS"},"startTime":1733747141495,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":316623,"timestamp":49397593179,"id":1376,"parentId":1193,"tags":{"name":"../pages/su/docs/pages/[id].js","cache":"MISS"},"startTime":1733747141496,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":318799,"timestamp":49397592146,"id":1371,"parentId":1193,"tags":{"name":"../pages/reset-password.js","cache":"MISS"},"startTime":1733747141495,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":319868,"timestamp":49397593792,"id":1378,"parentId":1193,"tags":{"name":"../pages/su.js","cache":"MISS"},"startTime":1733747141496,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":323833,"timestamp":49397593377,"id":1377,"parentId":1193,"tags":{"name":"../pages/su/load-balancing.js","cache":"MISS"},"startTime":1733747141496,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":323420,"timestamp":49397594122,"id":1379,"parentId":1193,"tags":{"name":"../pages/su/servers.js","cache":"MISS"},"startTime":1733747141497,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":322991,"timestamp":49397595052,"id":1381,"parentId":1193,"tags":{"name":"../pages/su/users.js","cache":"MISS"},"startTime":1733747141498,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":325205,"timestamp":49397595282,"id":1382,"parentId":1193,"tags":{"name":"../pages/su/users/new.js","cache":"MISS"},"startTime":1733747141498,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":328802,"timestamp":49397595460,"id":1383,"parentId":1193,"tags":{"name":"../pages/terms.js","cache":"MISS"},"startTime":1733747141498,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":329777,"timestamp":49397595799,"id":1384,"parentId":1193,"tags":{"name":"../pages/unsubscribe.js","cache":"MISS"},"startTime":1733747141498,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":330860,"timestamp":49397596590,"id":1387,"parentId":1193,"tags":{"name":"../webpack-api-runtime.js","cache":"MISS"},"startTime":1733747141499,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":331324,"timestamp":49397596264,"id":1386,"parentId":1193,"tags":{"name":"../webpack-runtime.js","cache":"MISS"},"startTime":1733747141499,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":333957,"timestamp":49397594370,"id":1380,"parentId":1193,"tags":{"name":"../pages/su/users/[single].js","cache":"MISS"},"startTime":1733747141497,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":332352,"timestamp":49397596024,"id":1385,"parentId":1193,"tags":{"name":"../pages/su/login.js","cache":"MISS"},"startTime":1733747141499,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":334899,"timestamp":49397597579,"id":1390,"parentId":1193,"tags":{"name":"6521.js","cache":"MISS"},"startTime":1733747141500,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":337659,"timestamp":49397597361,"id":1389,"parentId":1193,"tags":{"name":"9821.js","cache":"MISS"},"startTime":1733747141500,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":342024,"timestamp":49397597766,"id":1391,"parentId":1193,"tags":{"name":"9600.js","cache":"MISS"},"startTime":1733747141500,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":343933,"timestamp":49397598341,"id":1392,"parentId":1193,"tags":{"name":"7070.js","cache":"MISS"},"startTime":1733747141501,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":343815,"timestamp":49397598759,"id":1393,"parentId":1193,"tags":{"name":"4050.js","cache":"MISS"},"startTime":1733747141501,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":346550,"timestamp":49397598872,"id":1394,"parentId":1193,"tags":{"name":"5134.js","cache":"MISS"},"startTime":1733747141501,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":347911,"timestamp":49397599043,"id":1395,"parentId":1193,"tags":{"name":"3737.js","cache":"MISS"},"startTime":1733747141502,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":350859,"timestamp":49397599196,"id":1396,"parentId":1193,"tags":{"name":"3932.js","cache":"MISS"},"startTime":1733747141502,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":357022,"timestamp":49397599847,"id":1398,"parentId":1193,"tags":{"name":"9621.js","cache":"MISS"},"startTime":1733747141502,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":358244,"timestamp":49397599570,"id":1397,"parentId":1193,"tags":{"name":"2451.js","cache":"MISS"},"startTime":1733747141502,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":362755,"timestamp":49397601027,"id":1401,"parentId":1193,"tags":{"name":"1614.js","cache":"MISS"},"startTime":1733747141504,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":364037,"timestamp":49397600187,"id":1399,"parentId":1193,"tags":{"name":"8613.js","cache":"MISS"},"startTime":1733747141503,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":365455,"timestamp":49397600856,"id":1400,"parentId":1193,"tags":{"name":"4385.js","cache":"MISS"},"startTime":1733747141503,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":376332,"timestamp":49397601169,"id":1402,"parentId":1193,"tags":{"name":"5421.js","cache":"MISS"},"startTime":1733747141504,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":375590,"timestamp":49397602244,"id":1404,"parentId":1193,"tags":{"name":"3460.js","cache":"MISS"},"startTime":1733747141505,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":376108,"timestamp":49397601765,"id":1403,"parentId":1193,"tags":{"name":"9732.js","cache":"MISS"},"startTime":1733747141504,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":382531,"timestamp":49397602679,"id":1405,"parentId":1193,"tags":{"name":"4312.js","cache":"MISS"},"startTime":1733747141505,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":392780,"timestamp":49397596652,"id":1388,"parentId":1193,"tags":{"name":"883.js","cache":"MISS"},"startTime":1733747141499,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":387318,"timestamp":49397604476,"id":1409,"parentId":1193,"tags":{"name":"2414.js","cache":"MISS"},"startTime":1733747141507,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":390472,"timestamp":49397603571,"id":1407,"parentId":1193,"tags":{"name":"5664.js","cache":"MISS"},"startTime":1733747141506,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":390250,"timestamp":49397604669,"id":1410,"parentId":1193,"tags":{"name":"3247.js","cache":"MISS"},"startTime":1733747141507,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":392186,"timestamp":49397604087,"id":1408,"parentId":1193,"tags":{"name":"2996.js","cache":"MISS"},"startTime":1733747141507,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":394659,"timestamp":49397606110,"id":1413,"parentId":1193,"tags":{"name":"5212.js","cache":"MISS"},"startTime":1733747141509,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":399930,"timestamp":49397602825,"id":1406,"parentId":1193,"tags":{"name":"8842.js","cache":"MISS"},"startTime":1733747141505,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":399977,"timestamp":49397605873,"id":1412,"parentId":1193,"tags":{"name":"9914.js","cache":"MISS"},"startTime":1733747141508,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":401489,"timestamp":49397606462,"id":1415,"parentId":1193,"tags":{"name":"5674.js","cache":"MISS"},"startTime":1733747141509,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":402855,"timestamp":49397606598,"id":1416,"parentId":1193,"tags":{"name":"45.js","cache":"MISS"},"startTime":1733747141509,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":403955,"timestamp":49397606332,"id":1414,"parentId":1193,"tags":{"name":"5264.js","cache":"MISS"},"startTime":1733747141509,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":399019,"timestamp":49397614146,"id":1418,"parentId":1193,"tags":{"name":"4333.js","cache":"MISS"},"startTime":1733747141517,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":399844,"timestamp":49397613858,"id":1417,"parentId":1193,"tags":{"name":"8540.js","cache":"MISS"},"startTime":1733747141516,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":412910,"timestamp":49397604883,"id":1411,"parentId":1193,"tags":{"name":"7640.js","cache":"MISS"},"startTime":1733747141507,"traceId":"a901697cbe7cbd9f"},{"name":"minify-webpack-plugin-optimize","duration":516159,"timestamp":49397501647,"id":1193,"parentId":16,"tags":{"compilationName":"server"},"startTime":1733747141404,"traceId":"a901697cbe7cbd9f"},{"name":"css-minimizer-plugin","duration":183,"timestamp":49398018036,"id":1419,"parentId":16,"tags":{},"startTime":1733747141921,"traceId":"a901697cbe7cbd9f"},{"name":"create-trace-assets","duration":14058,"timestamp":49398018488,"id":1420,"parentId":17,"tags":{},"startTime":1733747141921,"traceId":"a901697cbe7cbd9f"},{"name":"seal","duration":1293294,"timestamp":49396744942,"id":1180,"parentId":16,"tags":{},"startTime":1733747140648,"traceId":"a901697cbe7cbd9f"}] +[{"name":"webpack-compilation","duration":21741720,"timestamp":49376297015,"id":16,"parentId":13,"tags":{"name":"server"},"startTime":1733747120200,"traceId":"a901697cbe7cbd9f"},{"name":"emit","duration":26807,"timestamp":49398039029,"id":1421,"parentId":13,"tags":{},"startTime":1733747141942,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-close","duration":1518134,"timestamp":49398066502,"id":1422,"parentId":13,"tags":{"name":"server"},"startTime":1733747141969,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-generate-error-stats","duration":1925,"timestamp":49399584689,"id":1423,"parentId":1422,"tags":{},"startTime":1733747143487,"traceId":"a901697cbe7cbd9f"},{"name":"make","duration":135,"timestamp":49399613545,"id":1425,"parentId":1424,"tags":{},"startTime":1733747143516,"traceId":"a901697cbe7cbd9f"},{"name":"chunk-graph","duration":47,"timestamp":49399614449,"id":1427,"parentId":1426,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-modules","duration":10,"timestamp":49399614549,"id":1429,"parentId":1426,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-chunks","duration":88,"timestamp":49399614619,"id":1430,"parentId":1426,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-tree","duration":11,"timestamp":49399614755,"id":1431,"parentId":1426,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-chunk-modules","duration":80,"timestamp":49399614843,"id":1432,"parentId":1426,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"optimize","duration":448,"timestamp":49399614513,"id":1428,"parentId":1426,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"module-hash","duration":19,"timestamp":49399615223,"id":1433,"parentId":1426,"tags":{},"startTime":1733747143518,"traceId":"a901697cbe7cbd9f"},{"name":"code-generation","duration":14,"timestamp":49399615255,"id":1434,"parentId":1426,"tags":{},"startTime":1733747143518,"traceId":"a901697cbe7cbd9f"},{"name":"hash","duration":75,"timestamp":49399615321,"id":1435,"parentId":1426,"tags":{},"startTime":1733747143518,"traceId":"a901697cbe7cbd9f"},{"name":"code-generation-jobs","duration":118,"timestamp":49399615396,"id":1436,"parentId":1426,"tags":{},"startTime":1733747143518,"traceId":"a901697cbe7cbd9f"},{"name":"module-assets","duration":27,"timestamp":49399615498,"id":1437,"parentId":1426,"tags":{},"startTime":1733747143518,"traceId":"a901697cbe7cbd9f"},{"name":"create-chunk-assets","duration":17,"timestamp":49399615532,"id":1438,"parentId":1426,"tags":{},"startTime":1733747143518,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":592,"timestamp":49399617996,"id":1440,"parentId":1439,"tags":{"name":"interception-route-rewrite-manifest.js","cache":"MISS"},"startTime":1733747143521,"traceId":"a901697cbe7cbd9f"},{"name":"minify-webpack-plugin-optimize","duration":871,"timestamp":49399617728,"id":1439,"parentId":1424,"tags":{"compilationName":"edge-server"},"startTime":1733747143520,"traceId":"a901697cbe7cbd9f"},{"name":"css-minimizer-plugin","duration":8,"timestamp":49399618637,"id":1441,"parentId":1424,"tags":{},"startTime":1733747143521,"traceId":"a901697cbe7cbd9f"},{"name":"seal","duration":5566,"timestamp":49399614283,"id":1426,"parentId":1424,"tags":{},"startTime":1733747143517,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-compilation","duration":11512,"timestamp":49399608424,"id":1424,"parentId":13,"tags":{"name":"edge-server"},"startTime":1733747143511,"traceId":"a901697cbe7cbd9f"},{"name":"emit","duration":346,"timestamp":49399620078,"id":1442,"parentId":13,"tags":{},"startTime":1733747143523,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-close","duration":25615,"timestamp":49399620752,"id":1443,"parentId":13,"tags":{"name":"edge-server"},"startTime":1733747143523,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-generate-error-stats","duration":926,"timestamp":49399646388,"id":1444,"parentId":1443,"tags":{},"startTime":1733747143549,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":148,"timestamp":49399669350,"id":1520,"parentId":1519,"tags":{"absolutePagePath":"next/dist/pages/_error"},"startTime":1733747143572,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":1854,"timestamp":49399668510,"id":1519,"parentId":1448,"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":1733747143571,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":15,"timestamp":49399670481,"id":1522,"parentId":1521,"tags":{"absolutePagePath":"private-next-pages/404.jsx"},"startTime":1733747143573,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":209,"timestamp":49399670438,"id":1521,"parentId":1449,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F404.jsx&page=%2F404!","layer":null},"startTime":1733747143573,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399670697,"id":1524,"parentId":1523,"tags":{"absolutePagePath":"private-next-pages/500.jsx"},"startTime":1733747143573,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":181,"timestamp":49399670661,"id":1523,"parentId":1450,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F500.jsx&page=%2F500!","layer":null},"startTime":1733747143573,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399670891,"id":1526,"parentId":1525,"tags":{"absolutePagePath":"private-next-pages/_app.js"},"startTime":1733747143573,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":171,"timestamp":49399670857,"id":1525,"parentId":1451,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F_app.js&page=%2F_app!","layer":null},"startTime":1733747143573,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399671073,"id":1528,"parentId":1527,"tags":{"absolutePagePath":"private-next-pages/about.jsx"},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":162,"timestamp":49399671042,"id":1527,"parentId":1453,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fabout.jsx&page=%2Fabout!","layer":null},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399671266,"id":1530,"parentId":1529,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/api-keys/index.jsx"},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":230,"timestamp":49399671233,"id":1529,"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%2Fapi-keys%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!","layer":null},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399671523,"id":1532,"parentId":1531,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/connect/index.jsx"},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":182,"timestamp":49399671479,"id":1531,"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%2Fconnect%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!","layer":null},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399671708,"id":1534,"parentId":1533,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/connect.jsx"},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":174,"timestamp":49399671674,"id":1533,"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%2Fconnect.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!","layer":null},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":17,"timestamp":49399671896,"id":1536,"parentId":1535,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/edit-database.jsx"},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":176,"timestamp":49399671860,"id":1535,"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%2Fedit-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!","layer":null},"startTime":1733747143574,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":20,"timestamp":49399672089,"id":1538,"parentId":1537,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/shell.jsx"},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":243,"timestamp":49399672052,"id":1537,"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%2Fshell.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!","layer":null},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399672344,"id":1540,"parentId":1539,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/index.jsx"},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":176,"timestamp":49399672308,"id":1539,"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%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!","layer":null},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399672531,"id":1542,"parentId":1541,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/schema.jsx"},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":162,"timestamp":49399672498,"id":1541,"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%2Fschema.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!","layer":null},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":17,"timestamp":49399672702,"id":1544,"parentId":1543,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx"},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":175,"timestamp":49399672672,"id":1543,"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%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!","layer":null},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":19,"timestamp":49399672894,"id":1546,"parentId":1545,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx"},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":167,"timestamp":49399672860,"id":1545,"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%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!","layer":null},"startTime":1733747143575,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399673067,"id":1548,"parentId":1547,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx"},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":150,"timestamp":49399673039,"id":1547,"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%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!","layer":null},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399673229,"id":1550,"parentId":1549,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx"},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":162,"timestamp":49399673201,"id":1549,"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%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!","layer":null},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":15,"timestamp":49399673402,"id":1552,"parentId":1551,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx"},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":155,"timestamp":49399673375,"id":1551,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!","layer":null},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399673571,"id":1554,"parentId":1553,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx"},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":151,"timestamp":49399673542,"id":1553,"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%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!","layer":null},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399673731,"id":1556,"parentId":1555,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx"},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":150,"timestamp":49399673704,"id":1555,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!","layer":null},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399673896,"id":1558,"parentId":1557,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/add-table.jsx"},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":150,"timestamp":49399673868,"id":1557,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!","layer":null},"startTime":1733747143576,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399674058,"id":1560,"parentId":1559,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/index.jsx"},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":154,"timestamp":49399674031,"id":1559,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!","layer":null},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399674226,"id":1562,"parentId":1561,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx"},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":157,"timestamp":49399674197,"id":1561,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!","layer":null},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399674399,"id":1564,"parentId":1563,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx"},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":161,"timestamp":49399674367,"id":1563,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!","layer":null},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399674569,"id":1566,"parentId":1565,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-user.jsx"},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":162,"timestamp":49399674540,"id":1565,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399674747,"id":1568,"parentId":1567,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/index.jsx"},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":160,"timestamp":49399674715,"id":1567,"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%2Fdatabases%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!","layer":null},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399674917,"id":1570,"parentId":1569,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/index.jsx"},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":199,"timestamp":49399674889,"id":1569,"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%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!","layer":null},"startTime":1733747143577,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399675137,"id":1572,"parentId":1571,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/add-database.jsx"},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":173,"timestamp":49399675103,"id":1571,"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%2Fdatabases%2Fadd-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!","layer":null},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399675326,"id":1574,"parentId":1573,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/index.jsx"},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":180,"timestamp":49399675291,"id":1573,"parentId":1476,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D!","layer":null},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":28,"timestamp":49399675518,"id":1576,"parentId":1575,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/settings.jsx"},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":194,"timestamp":49399675485,"id":1575,"parentId":1477,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!","layer":null},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":29,"timestamp":49399675726,"id":1578,"parentId":1577,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/add-user.jsx"},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":199,"timestamp":49399675693,"id":1577,"parentId":1478,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399675937,"id":1580,"parentId":1579,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/index.jsx"},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":171,"timestamp":49399675905,"id":1579,"parentId":1479,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!","layer":null},"startTime":1733747143578,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399676127,"id":1582,"parentId":1581,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/[...folder].jsx"},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":174,"timestamp":49399676092,"id":1581,"parentId":1480,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!","layer":null},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":16,"timestamp":49399676333,"id":1584,"parentId":1583,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/schema.jsx"},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":207,"timestamp":49399676300,"id":1583,"parentId":1481,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!","layer":null},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399676561,"id":1586,"parentId":1585,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/[user].jsx"},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":193,"timestamp":49399676525,"id":1585,"parentId":1482,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!","layer":null},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399676764,"id":1588,"parentId":1587,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/index.jsx"},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":179,"timestamp":49399676732,"id":1587,"parentId":1483,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!","layer":null},"startTime":1733747143579,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399676962,"id":1590,"parentId":1589,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/index.jsx"},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":217,"timestamp":49399676927,"id":1589,"parentId":1484,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!","layer":null},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":14,"timestamp":49399677196,"id":1592,"parentId":1591,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/index.jsx"},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":186,"timestamp":49399677160,"id":1591,"parentId":1485,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!","layer":null},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399677392,"id":1594,"parentId":1593,"tags":{"absolutePagePath":"private-next-pages/admin/index.jsx"},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":177,"timestamp":49399677360,"id":1593,"parentId":1486,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2Findex.jsx&page=%2Fadmin!","layer":null},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"}] +[{"name":"next-client-pages-loader","duration":15,"timestamp":49399677821,"id":1596,"parentId":1595,"tags":{"absolutePagePath":"private-next-pages/blog/index.jsx"},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":207,"timestamp":49399677781,"id":1595,"parentId":1487,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fblog%2Findex.jsx&page=%2Fblog!","layer":null},"startTime":1733747143580,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399678039,"id":1598,"parentId":1597,"tags":{"absolutePagePath":"private-next-pages/contact.jsx"},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":183,"timestamp":49399678004,"id":1597,"parentId":1488,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcontact.jsx&page=%2Fcontact!","layer":null},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399678239,"id":1600,"parentId":1599,"tags":{"absolutePagePath":"private-next-pages/docs/index.jsx"},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":241,"timestamp":49399678202,"id":1599,"parentId":1489,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2Findex.jsx&page=%2Fdocs!","layer":null},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":15,"timestamp":49399678500,"id":1602,"parentId":1601,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/index.jsx"},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":202,"timestamp":49399678460,"id":1601,"parentId":1490,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&page=%2Fdocs%2F%5Bpage%5D!","layer":null},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399678716,"id":1604,"parentId":1603,"tags":{"absolutePagePath":"private-next-pages/login.jsx"},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":194,"timestamp":49399678678,"id":1603,"parentId":1491,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogin.jsx&page=%2Flogin!","layer":null},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399678928,"id":1606,"parentId":1605,"tags":{"absolutePagePath":"private-next-pages/index.jsx"},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":197,"timestamp":49399678887,"id":1605,"parentId":1492,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Findex.jsx&page=%2F!","layer":null},"startTime":1733747143581,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":16,"timestamp":49399679187,"id":1608,"parentId":1607,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/[sub-page]/index.jsx"},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":253,"timestamp":49399679099,"id":1607,"parentId":1493,"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.jsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!","layer":null},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399679398,"id":1610,"parentId":1609,"tags":{"absolutePagePath":"private-next-pages/create-account.jsx"},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":192,"timestamp":49399679365,"id":1609,"parentId":1494,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcreate-account.jsx&page=%2Fcreate-account!","layer":null},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":13,"timestamp":49399679607,"id":1612,"parentId":1611,"tags":{"absolutePagePath":"private-next-pages/privacy.jsx"},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":174,"timestamp":49399679571,"id":1611,"parentId":1495,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fprivacy.jsx&page=%2Fprivacy!","layer":null},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399679790,"id":1614,"parentId":1613,"tags":{"absolutePagePath":"private-next-pages/logout.jsx"},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":169,"timestamp":49399679759,"id":1613,"parentId":1496,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogout.jsx&page=%2Flogout!","layer":null},"startTime":1733747143582,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399679974,"id":1616,"parentId":1615,"tags":{"absolutePagePath":"private-next-pages/email-verification/index.jsx"},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":166,"timestamp":49399679942,"id":1615,"parentId":1497,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Femail-verification%2Findex.jsx&page=%2Femail-verification!","layer":null},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399680157,"id":1618,"parentId":1617,"tags":{"absolutePagePath":"private-next-pages/redirect.jsx"},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":172,"timestamp":49399680122,"id":1617,"parentId":1498,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fredirect.jsx&page=%2Fredirect!","layer":null},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399680338,"id":1620,"parentId":1619,"tags":{"absolutePagePath":"private-next-pages/su/backups.jsx"},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":163,"timestamp":49399680307,"id":1619,"parentId":1499,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fbackups.jsx&page=%2Fsu%2Fbackups!","layer":null},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399680517,"id":1622,"parentId":1621,"tags":{"absolutePagePath":"private-next-pages/send-password-reset-link.jsx"},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":204,"timestamp":49399680484,"id":1621,"parentId":1500,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsend-password-reset-link.jsx&page=%2Fsend-password-reset-link!","layer":null},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399680733,"id":1624,"parentId":1623,"tags":{"absolutePagePath":"private-next-pages/su/docs/create-page.jsx"},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":171,"timestamp":49399680701,"id":1623,"parentId":1501,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.jsx&page=%2Fsu%2Fdocs%2Fcreate-page!","layer":null},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399680915,"id":1626,"parentId":1625,"tags":{"absolutePagePath":"private-next-pages/su/console.jsx"},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":165,"timestamp":49399680885,"id":1625,"parentId":1502,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fconsole.jsx&page=%2Fsu%2Fconsole!","layer":null},"startTime":1733747143583,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399681096,"id":1628,"parentId":1627,"tags":{"absolutePagePath":"private-next-pages/su/docs/edit-page.jsx"},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":167,"timestamp":49399681063,"id":1627,"parentId":1503,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.jsx&page=%2Fsu%2Fdocs%2Fedit-page!","layer":null},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399681275,"id":1630,"parentId":1629,"tags":{"absolutePagePath":"private-next-pages/reset-password.jsx"},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":173,"timestamp":49399681244,"id":1629,"parentId":1504,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Freset-password.jsx&page=%2Freset-password!","layer":null},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399681465,"id":1632,"parentId":1631,"tags":{"absolutePagePath":"private-next-pages/su/docs/index.jsx"},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":171,"timestamp":49399681433,"id":1631,"parentId":1505,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.jsx&page=%2Fsu%2Fdocs!","layer":null},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399681651,"id":1634,"parentId":1633,"tags":{"absolutePagePath":"private-next-pages/su/error-logs.jsx"},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":194,"timestamp":49399681618,"id":1633,"parentId":1506,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.jsx&page=%2Fsu%2Ferror-logs!","layer":null},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399681857,"id":1636,"parentId":1635,"tags":{"absolutePagePath":"private-next-pages/su/envar.jsx"},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":170,"timestamp":49399681826,"id":1635,"parentId":1507,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fenvar.jsx&page=%2Fsu%2Fenvar!","layer":null},"startTime":1733747143584,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399682041,"id":1638,"parentId":1637,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/index.jsx"},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":173,"timestamp":49399682010,"id":1637,"parentId":1508,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&page=%2Fsu%2Fdocs%2Fpages!","layer":null},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399682231,"id":1640,"parentId":1639,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/[id].jsx"},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":190,"timestamp":49399682196,"id":1639,"parentId":1509,"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.jsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!","layer":null},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399682429,"id":1642,"parentId":1641,"tags":{"absolutePagePath":"private-next-pages/su/load-balancing.jsx"},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":162,"timestamp":49399682399,"id":1641,"parentId":1510,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.jsx&page=%2Fsu%2Fload-balancing!","layer":null},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399682606,"id":1644,"parentId":1643,"tags":{"absolutePagePath":"private-next-pages/su/index.jsx"},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":157,"timestamp":49399682574,"id":1643,"parentId":1511,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Findex.jsx&page=%2Fsu!","layer":null},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399682775,"id":1646,"parentId":1645,"tags":{"absolutePagePath":"private-next-pages/su/servers.jsx"},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":158,"timestamp":49399682745,"id":1645,"parentId":1512,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fservers.jsx&page=%2Fsu%2Fservers!","layer":null},"startTime":1733747143585,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":16,"timestamp":49399682944,"id":1648,"parentId":1647,"tags":{"absolutePagePath":"private-next-pages/su/users/[single].jsx"},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":160,"timestamp":49399682916,"id":1647,"parentId":1513,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.jsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!","layer":null},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399683128,"id":1650,"parentId":1649,"tags":{"absolutePagePath":"private-next-pages/su/users/index.jsx"},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":156,"timestamp":49399683098,"id":1649,"parentId":1514,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.jsx&page=%2Fsu%2Fusers!","layer":null},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399683299,"id":1652,"parentId":1651,"tags":{"absolutePagePath":"private-next-pages/su/users/new.jsx"},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":162,"timestamp":49399683267,"id":1651,"parentId":1515,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.jsx&page=%2Fsu%2Fusers%2Fnew!","layer":null},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399683472,"id":1654,"parentId":1653,"tags":{"absolutePagePath":"private-next-pages/terms.jsx"},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":159,"timestamp":49399683442,"id":1653,"parentId":1516,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fterms.jsx&page=%2Fterms!","layer":null},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":11,"timestamp":49399683646,"id":1656,"parentId":1655,"tags":{"absolutePagePath":"private-next-pages/unsubscribe.jsx"},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":159,"timestamp":49399683614,"id":1655,"parentId":1517,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Funsubscribe.jsx&page=%2Funsubscribe!","layer":null},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"next-client-pages-loader","duration":12,"timestamp":49399683816,"id":1658,"parentId":1657,"tags":{"absolutePagePath":"private-next-pages/su/login.jsx"},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":196,"timestamp":49399683787,"id":1657,"parentId":1518,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Flogin.jsx&page=%2Fsu%2Flogin!","layer":null},"startTime":1733747143586,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26120,"timestamp":49399684002,"id":1659,"parentId":1447,"tags":{"name":"/app/node_modules/next/dist/client/next.js","layer":null},"startTime":1733747143587,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5187,"timestamp":49399707490,"id":1660,"parentId":1519,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1733747143610,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8588,"timestamp":49399708227,"id":1661,"parentId":1452,"tags":{"name":"/app/node_modules/next/dist/client/router.js","layer":null},"startTime":1733747143611,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5434,"timestamp":49399714475,"id":1662,"parentId":1660,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1733747143617,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":776,"timestamp":49399722765,"id":1665,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1733747143625,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1982,"timestamp":49399725625,"id":1669,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1733747143628,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2339,"timestamp":49399725665,"id":1670,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1733747143628,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3906,"timestamp":49399725405,"id":1666,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1733747143628,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12587,"timestamp":49399717485,"id":1663,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/webpack.js","layer":null},"startTime":1733747143620,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6037,"timestamp":49399728319,"id":1676,"parentId":1665,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1733747143631,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22442,"timestamp":49399717575,"id":1664,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/index.js","layer":null},"startTime":1733747143620,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24000,"timestamp":49399726792,"id":1672,"parentId":1660,"tags":{"name":"/app/node_modules/react/index.js","layer":null},"startTime":1733747143629,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24277,"timestamp":49399726733,"id":1671,"parentId":1660,"tags":{"name":"/app/node_modules/react/jsx-runtime.js","layer":null},"startTime":1733747143629,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26283,"timestamp":49399725570,"id":1668,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","layer":null},"startTime":1733747143628,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26574,"timestamp":49399725503,"id":1667,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","layer":null},"startTime":1733747143628,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6998,"timestamp":49399745814,"id":1679,"parentId":1525,"tags":{"name":"/app/pages/_app.js","layer":null},"startTime":1733747143648,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7750,"timestamp":49399745653,"id":1677,"parentId":1521,"tags":{"name":"/app/pages/404.jsx","layer":null},"startTime":1733747143648,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8102,"timestamp":49399745854,"id":1680,"parentId":1527,"tags":{"name":"/app/pages/about.jsx","layer":null},"startTime":1733747143648,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8708,"timestamp":49399745772,"id":1678,"parentId":1523,"tags":{"name":"/app/pages/500.jsx","layer":null},"startTime":1733747143648,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9091,"timestamp":49399745890,"id":1681,"parentId":1597,"tags":{"name":"/app/pages/contact.jsx","layer":null},"startTime":1733747143648,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9531,"timestamp":49399745919,"id":1682,"parentId":1603,"tags":{"name":"/app/pages/login.jsx","layer":null},"startTime":1733747143649,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9978,"timestamp":49399745948,"id":1683,"parentId":1605,"tags":{"name":"/app/pages/index.jsx","layer":null},"startTime":1733747143649,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11028,"timestamp":49399746010,"id":1685,"parentId":1611,"tags":{"name":"/app/pages/privacy.jsx","layer":null},"startTime":1733747143649,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11744,"timestamp":49399745978,"id":1684,"parentId":1609,"tags":{"name":"/app/pages/create-account.jsx","layer":null},"startTime":1733747143649,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21256,"timestamp":49399746040,"id":1686,"parentId":1613,"tags":{"name":"/app/pages/logout.jsx","layer":null},"startTime":1733747143649,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40708,"timestamp":49399726888,"id":1674,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router-context.shared-runtime.js","layer":null},"startTime":1733747143629,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41220,"timestamp":49399726822,"id":1673,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/client/with-router.js","layer":null},"startTime":1733747143629,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":56449,"timestamp":49399726951,"id":1675,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/router.js","layer":null},"startTime":1733747143630,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6571,"timestamp":49399800677,"id":1687,"parentId":1617,"tags":{"name":"/app/pages/redirect.jsx","layer":null},"startTime":1733747143703,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6948,"timestamp":49399800864,"id":1690,"parentId":1653,"tags":{"name":"/app/pages/terms.jsx","layer":null},"startTime":1733747143703,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7875,"timestamp":49399800789,"id":1688,"parentId":1621,"tags":{"name":"/app/pages/send-password-reset-link.jsx","layer":null},"startTime":1733747143703,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8932,"timestamp":49399800829,"id":1689,"parentId":1629,"tags":{"name":"/app/pages/reset-password.jsx","layer":null},"startTime":1733747143703,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9370,"timestamp":49399800931,"id":1692,"parentId":1593,"tags":{"name":"/app/pages/admin/index.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9833,"timestamp":49399800963,"id":1693,"parentId":1595,"tags":{"name":"/app/pages/blog/index.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10605,"timestamp":49399800899,"id":1691,"parentId":1655,"tags":{"name":"/app/pages/unsubscribe.jsx","layer":null},"startTime":1733747143703,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11010,"timestamp":49399800991,"id":1694,"parentId":1599,"tags":{"name":"/app/pages/docs/index.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11250,"timestamp":49399801082,"id":1697,"parentId":1625,"tags":{"name":"/app/pages/su/console.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":11881,"timestamp":49399801053,"id":1696,"parentId":1619,"tags":{"name":"/app/pages/su/backups.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12200,"timestamp":49399801112,"id":1698,"parentId":1633,"tags":{"name":"/app/pages/su/error-logs.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12421,"timestamp":49399801198,"id":1701,"parentId":1643,"tags":{"name":"/app/pages/su/index.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12749,"timestamp":49399801141,"id":1699,"parentId":1635,"tags":{"name":"/app/pages/su/envar.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12990,"timestamp":49399801170,"id":1700,"parentId":1641,"tags":{"name":"/app/pages/su/load-balancing.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21082,"timestamp":49399801226,"id":1702,"parentId":1645,"tags":{"name":"/app/pages/su/servers.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22198,"timestamp":49399801023,"id":1695,"parentId":1615,"tags":{"name":"/app/pages/email-verification/index.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":27656,"timestamp":49399801255,"id":1703,"parentId":1657,"tags":{"name":"/app/pages/su/login.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28115,"timestamp":49399801284,"id":1704,"parentId":1573,"tags":{"name":"/app/pages/admin/[user_id]/index.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28543,"timestamp":49399801316,"id":1705,"parentId":1575,"tags":{"name":"/app/pages/admin/[user_id]/settings.jsx","layer":null},"startTime":1733747143704,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8547,"timestamp":49399842946,"id":1708,"parentId":1623,"tags":{"name":"/app/pages/su/docs/create-page.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8986,"timestamp":49399842981,"id":1709,"parentId":1627,"tags":{"name":"/app/pages/su/docs/edit-page.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9915,"timestamp":49399842772,"id":1706,"parentId":1583,"tags":{"name":"/app/pages/admin/[user_id]/schema.jsx","layer":null},"startTime":1733747143745,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10466,"timestamp":49399842901,"id":1707,"parentId":1601,"tags":{"name":"/app/pages/docs/[page]/index.jsx","layer":null},"startTime":1733747143745,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10757,"timestamp":49399843016,"id":1710,"parentId":1631,"tags":{"name":"/app/pages/su/docs/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11078,"timestamp":49399843082,"id":1712,"parentId":1649,"tags":{"name":"/app/pages/su/users/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11505,"timestamp":49399843050,"id":1711,"parentId":1647,"tags":{"name":"/app/pages/su/users/[single].jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11761,"timestamp":49399843111,"id":1713,"parentId":1651,"tags":{"name":"/app/pages/su/users/new.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12185,"timestamp":49399843202,"id":1715,"parentId":1531,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12701,"timestamp":49399843167,"id":1714,"parentId":1529,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14594,"timestamp":49399843232,"id":1716,"parentId":1567,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14995,"timestamp":49399843291,"id":1718,"parentId":1577,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15501,"timestamp":49399843261,"id":1717,"parentId":1571,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15794,"timestamp":49399843376,"id":1721,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16404,"timestamp":49399843431,"id":1723,"parentId":1581,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17063,"timestamp":49399843404,"id":1722,"parentId":1579,"tags":{"name":"/app/pages/admin/[user_id]/media/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19026,"timestamp":49399843321,"id":1719,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20276,"timestamp":49399843348,"id":1720,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20720,"timestamp":49399843457,"id":1724,"parentId":1591,"tags":{"name":"/app/pages/admin/[user_id]/users/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20988,"timestamp":49399843511,"id":1726,"parentId":1637,"tags":{"name":"/app/pages/su/docs/pages/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21249,"timestamp":49399843540,"id":1727,"parentId":1639,"tags":{"name":"/app/pages/su/docs/pages/[id].jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21773,"timestamp":49399843484,"id":1725,"parentId":1607,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22060,"timestamp":49399843573,"id":1728,"parentId":1533,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22379,"timestamp":49399843622,"id":1729,"parentId":1535,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22725,"timestamp":49399843653,"id":1730,"parentId":1537,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24242,"timestamp":49399843682,"id":1731,"parentId":1539,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24579,"timestamp":49399843736,"id":1733,"parentId":1589,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24970,"timestamp":49399843709,"id":1732,"parentId":1541,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.jsx","layer":null},"startTime":1733747143746,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5007,"timestamp":49399904032,"id":1736,"parentId":1563,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx","layer":null},"startTime":1733747143807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5668,"timestamp":49399903986,"id":1735,"parentId":1559,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.jsx","layer":null},"startTime":1733747143807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6098,"timestamp":49399904067,"id":1737,"parentId":1565,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.jsx","layer":null},"startTime":1733747143807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7024,"timestamp":49399903870,"id":1734,"parentId":1557,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.jsx","layer":null},"startTime":1733747143806,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7239,"timestamp":49399904134,"id":1739,"parentId":1585,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].jsx","layer":null},"startTime":1733747143807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7788,"timestamp":49399904165,"id":1740,"parentId":1587,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.jsx","layer":null},"startTime":1733747143807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8396,"timestamp":49399904100,"id":1738,"parentId":1569,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.jsx","layer":null},"startTime":1733747143807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1744,"timestamp":49399925259,"id":1744,"parentId":1679,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5892,"timestamp":49399925336,"id":1746,"parentId":1555,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6950,"timestamp":49399925024,"id":1741,"parentId":1545,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7514,"timestamp":49399925171,"id":1742,"parentId":1549,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8078,"timestamp":49399925219,"id":1743,"parentId":1551,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8320,"timestamp":49399925377,"id":1747,"parentId":1561,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8654,"timestamp":49399925448,"id":1749,"parentId":1547,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9151,"timestamp":49399925413,"id":1748,"parentId":1543,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8839,"timestamp":49399926124,"id":1753,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1733747143829,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14904,"timestamp":49399925480,"id":1750,"parentId":1553,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21508,"timestamp":49399925285,"id":1745,"parentId":1664,"tags":{"name":"/app/node_modules/react-dom/client.js","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21804,"timestamp":49399926081,"id":1752,"parentId":1662,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js","layer":null},"startTime":1733747143829,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22569,"timestamp":49399925511,"id":1751,"parentId":1660,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_default.js","layer":null},"startTime":1733747143828,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22428,"timestamp":49399926183,"id":1754,"parentId":1663,"tags":{"name":"/app/node_modules/next/dist/build/deployment-id.js","layer":null},"startTime":1733747143829,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":440,"timestamp":49399956545,"id":1769,"parentId":1675,"tags":{"layer":null},"startTime":1733747143859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":36554,"timestamp":49399926321,"id":1757,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/route-announcer.js","layer":null},"startTime":1733747143829,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38148,"timestamp":49399926219,"id":1755,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/head-manager.js","layer":null},"startTime":1733747143829,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":39571,"timestamp":49399926271,"id":1756,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/page-loader.js","layer":null},"startTime":1733747143829,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8888,"timestamp":49399957555,"id":1784,"parentId":1677,"tags":{"name":"/app/functions/frontend/clientAuthUser.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9405,"timestamp":49399957596,"id":1785,"parentId":1678,"tags":{"name":"/app/functions/frontend/fetchApi.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44106,"timestamp":49399929749,"id":1759,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/has-base-path.js","layer":null},"startTime":1733747143832,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44797,"timestamp":49399929607,"id":1758,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/remove-base-path.js","layer":null},"startTime":1733747143832,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44865,"timestamp":49399929912,"id":1761,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/mitt.js","layer":null},"startTime":1733747143833,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":45483,"timestamp":49399929816,"id":1760,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/pages/_app.js","layer":null},"startTime":1733747143832,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":45542,"timestamp":49399930019,"id":1763,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","layer":null},"startTime":1733747143833,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":45882,"timestamp":49399929969,"id":1762,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/runtime-config.external.js","layer":null},"startTime":1733747143833,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5992,"timestamp":49399970537,"id":1800,"parentId":1677,"tags":{"name":"/app/layouts/GeneralLayout.jsx","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6239,"timestamp":49399970604,"id":1802,"parentId":1680,"tags":{"name":"/app/components/pages/about/Hero.jsx","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6783,"timestamp":49399970570,"id":1801,"parentId":1677,"tags":{"name":"/app/components/general/PageHeadTags.jsx","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7626,"timestamp":49399970498,"id":1799,"parentId":1679,"tags":{"name":"/app/components/ErrorBoundary.jsx","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7871,"timestamp":49399970635,"id":1803,"parentId":1680,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.jsx","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6516,"timestamp":49399983093,"id":1806,"parentId":1681,"tags":{"name":"/app/components/pages/contact/ContactHero.jsx","layer":null},"startTime":1733747143886,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7144,"timestamp":49399982928,"id":1804,"parentId":1680,"tags":{"name":"/app/components/pages/homepage/FooterCta.jsx","layer":null},"startTime":1733747143886,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7159,"timestamp":49399983165,"id":1808,"parentId":1686,"tags":{"name":"/app/functions/frontend/clearCaches.js","layer":null},"startTime":1733747143886,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7813,"timestamp":49399983047,"id":1805,"parentId":1680,"tags":{"name":"/app/components/pages/homepage/MainFeaturesSection.jsx","layer":null},"startTime":1733747143886,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8559,"timestamp":49399983131,"id":1807,"parentId":1681,"tags":{"name":"/app/components/pages/contact/ContactForm.jsx","layer":null},"startTime":1733747143886,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9128,"timestamp":49399983200,"id":1809,"parentId":1682,"tags":{"name":"/app/components/general/Logo.jsx","layer":null},"startTime":1733747143886,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":43803,"timestamp":49399957007,"id":1770,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/polyfill-module.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44552,"timestamp":49399957211,"id":1775,"parentId":1671,"tags":{"name":"/app/node_modules/react/cjs/react-jsx-runtime.production.min.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":47803,"timestamp":49399957183,"id":1774,"parentId":1672,"tags":{"name":"/app/node_modules/react/cjs/react.production.min.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11905,"timestamp":49399994985,"id":1810,"parentId":1686,"tags":{"name":"/app/components/general/LoadingBlock.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12169,"timestamp":49399995267,"id":1813,"parentId":1683,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12825,"timestamp":49399995225,"id":1812,"parentId":1683,"tags":{"name":"/app/components/pages/homepage/Hero2.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13906,"timestamp":49399995170,"id":1811,"parentId":1682,"tags":{"name":"/app/components/pages/login/LoginForm.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14324,"timestamp":49399995305,"id":1814,"parentId":1685,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14709,"timestamp":49399995384,"id":1816,"parentId":1684,"tags":{"name":"/app/components/pages/create-account/Hero.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15489,"timestamp":49399995345,"id":1815,"parentId":1685,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.jsx","layer":null},"startTime":1733747143898,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":61511,"timestamp":49399956314,"id":1765,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","layer":null},"startTime":1733747143859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":61730,"timestamp":49399956411,"id":1767,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js","layer":null},"startTime":1733747143859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":62368,"timestamp":49399956455,"id":1768,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/querystring.js","layer":null},"startTime":1733747143859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":63105,"timestamp":49399956172,"id":1764,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","layer":null},"startTime":1733747143859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":63943,"timestamp":49399956366,"id":1766,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/adapters.js","layer":null},"startTime":1733747143859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":63854,"timestamp":49399957051,"id":1771,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/shared.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":64608,"timestamp":49399957099,"id":1772,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/tracing/tracer.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":65031,"timestamp":49399957141,"id":1773,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/tracing/report-to-socket.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":65131,"timestamp":49399957315,"id":1778,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-js","duration":65978,"timestamp":49399957275,"id":1777,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/detect-domain-locale.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":66414,"timestamp":49399957352,"id":1779,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":66837,"timestamp":49399957392,"id":1780,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":67809,"timestamp":49399957427,"id":1781,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-url.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":68153,"timestamp":49399957501,"id":1783,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-path.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":68572,"timestamp":49399957663,"id":1787,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/remove-locale.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":69247,"timestamp":49399957628,"id":1786,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/add-locale.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":57299,"timestamp":49399970112,"id":1790,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/lib/is-api-route.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":59398,"timestamp":49399970153,"id":1791,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/lib/constants.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":75933,"timestamp":49399957462,"id":1782,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-regex.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":76419,"timestamp":49399957700,"id":1788,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/add-base-path.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":79843,"timestamp":49399957235,"id":1776,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/route-loader.js","layer":null},"startTime":1733747143860,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":73998,"timestamp":49399970234,"id":1793,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":74738,"timestamp":49399970187,"id":1792,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":75939,"timestamp":49399969947,"id":1789,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/client/resolve-href.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":75902,"timestamp":49399970329,"id":1795,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-local-url.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":78823,"timestamp":49399970283,"id":1794,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/compare-states.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":79092,"timestamp":49399970373,"id":1796,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":79313,"timestamp":49399970414,"id":1797,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/omit.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":79864,"timestamp":49399970453,"id":1798,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js","layer":null},"startTime":1733747143873,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10479,"timestamp":49400052606,"id":1817,"parentId":1682,"tags":{"name":"/app/components/general/LoadingScreen.jsx","layer":null},"startTime":1733747143955,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4478,"timestamp":49400058932,"id":1826,"parentId":1688,"tags":{"name":"/app/components/general/FormSuccessBlock.jsx","layer":null},"startTime":1733747143962,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4696,"timestamp":49400058972,"id":1827,"parentId":1688,"tags":{"name":"/app/components/general/InfoBlock.jsx","layer":null},"startTime":1733747143962,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4930,"timestamp":49400059002,"id":1828,"parentId":1690,"tags":{"name":"/app/components/pages/terms/TermsHero.jsx","layer":null},"startTime":1733747143962,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5210,"timestamp":49400059063,"id":1830,"parentId":1693,"tags":{"name":"/app/components/pages/blog/BlogHero.jsx","layer":null},"startTime":1733747143962,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6128,"timestamp":49400059032,"id":1829,"parentId":1690,"tags":{"name":"/app/components/pages/terms/TermsBody.jsx","layer":null},"startTime":1733747143962,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2283,"timestamp":49400071179,"id":1834,"parentId":1721,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9498,"timestamp":49400071100,"id":1832,"parentId":1692,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10130,"timestamp":49400071142,"id":1833,"parentId":1692,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10803,"timestamp":49400071201,"id":1835,"parentId":1697,"tags":{"name":"/app/layouts/SuAdminLayout.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11851,"timestamp":49400070993,"id":1831,"parentId":1692,"tags":{"name":"/app/layouts/AdminLayout.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12221,"timestamp":49400071322,"id":1839,"parentId":1694,"tags":{"name":"/app/components/pages/docs/DocsAside.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12980,"timestamp":49400071264,"id":1837,"parentId":1696,"tags":{"name":"/app/components/su/SuBackupsContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13719,"timestamp":49400071234,"id":1836,"parentId":1696,"tags":{"name":"/app/components/su/SuErrorLogsContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16968,"timestamp":49400071293,"id":1838,"parentId":1698,"tags":{"name":"/app/components/su/SuDashboardContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17234,"timestamp":49400071378,"id":1841,"parentId":1694,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17527,"timestamp":49400071351,"id":1840,"parentId":1694,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17760,"timestamp":49400071465,"id":1844,"parentId":1700,"tags":{"name":"/app/components/su/load-balancing/index.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18086,"timestamp":49400071495,"id":1845,"parentId":1702,"tags":{"name":"/app/components/su/servers/index.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":26120,"timestamp":49400071435,"id":1843,"parentId":1699,"tags":{"name":"/app/components/su/SuEnvContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26743,"timestamp":49400071523,"id":1846,"parentId":1719,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":27320,"timestamp":49400071550,"id":1847,"parentId":1719,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28509,"timestamp":49400071406,"id":1842,"parentId":1697,"tags":{"name":"/app/components/su/SuConsoleContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28519,"timestamp":49400071684,"id":1851,"parentId":1706,"tags":{"name":"/app/components/general/VerificationBanner.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29000,"timestamp":49400071650,"id":1850,"parentId":1705,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29661,"timestamp":49400071579,"id":1848,"parentId":1705,"tags":{"name":"/app/components/admin/settings/SettingsContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29715,"timestamp":49400071820,"id":1855,"parentId":1712,"tags":{"name":"/app/components/su/SuUsersContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":30679,"timestamp":49400071793,"id":1854,"parentId":1706,"tags":{"name":"/app/components/general/Breadcrumbs.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":31725,"timestamp":49400071761,"id":1853,"parentId":1706,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":32063,"timestamp":49400071875,"id":1857,"parentId":1707,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":33544,"timestamp":49400071848,"id":1856,"parentId":1711,"tags":{"name":"/app/components/su/SuSingleUserContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":34035,"timestamp":49400071902,"id":1858,"parentId":1710,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35812,"timestamp":49400071714,"id":1852,"parentId":1708,"tags":{"name":"/app/components/su/docs/CreatePageContent.jsx","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":66709,"timestamp":49400052847,"id":1821,"parentId":1679,"tags":{"name":"/app/node_modules/next/head.js","layer":null},"startTime":1733747143955,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":118410,"timestamp":49400052715,"id":1818,"parentId":1689,"tags":{"name":"/app/node_modules/lodash/lodash.js","layer":null},"startTime":1733747143955,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":99994,"timestamp":49400071609,"id":1849,"parentId":1719,"tags":{"name":"/app/node_modules/react-dom/index.js","layer":null},"startTime":1733747143974,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":119278,"timestamp":49400052756,"id":1819,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","layer":null},"startTime":1733747143955,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":113603,"timestamp":49400058868,"id":1825,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/portal/index.js","layer":null},"startTime":1733747143961,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":120596,"timestamp":49400052801,"id":1820,"parentId":1675,"tags":{"name":"/app/node_modules/next/dist/shared/lib/bloom-filter.js","layer":null},"startTime":1733747143955,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":524544,"timestamp":49399657132,"id":1496,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogout.jsx&page=%2Flogout!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":524467,"timestamp":49399657224,"id":1518,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Flogin.jsx&page=%2Fsu%2Flogin!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5135,"timestamp":49400178622,"id":1862,"parentId":1715,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.jsx","layer":null},"startTime":1733747144081,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5641,"timestamp":49400178388,"id":1859,"parentId":1713,"tags":{"name":"/app/components/su/SuNewUserContent.jsx","layer":null},"startTime":1733747144081,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5811,"timestamp":49400178588,"id":1861,"parentId":1715,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.jsx","layer":null},"startTime":1733747144081,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6109,"timestamp":49400178549,"id":1860,"parentId":1715,"tags":{"name":"/app/components/admin/connect/ConnectContent.jsx","layer":null},"startTime":1733747144081,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7029,"timestamp":49400178651,"id":1863,"parentId":1714,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.jsx","layer":null},"startTime":1733747144081,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8956,"timestamp":49400191154,"id":1864,"parentId":1714,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.jsx","layer":null},"startTime":1733747144094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9450,"timestamp":49400191296,"id":1866,"parentId":1716,"tags":{"name":"/app/components/admin/databases/DatabasesContent.jsx","layer":null},"startTime":1733747144094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10473,"timestamp":49400191356,"id":1868,"parentId":1723,"tags":{"name":"/app/components/general/UploadImageComponent.jsx","layer":null},"startTime":1733747144094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11943,"timestamp":49400191258,"id":1865,"parentId":1714,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.jsx","layer":null},"startTime":1733747144094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14526,"timestamp":49400191327,"id":1867,"parentId":1718,"tags":{"name":"/app/components/admin/users/AddNewUserContent.jsx","layer":null},"startTime":1733747144094,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17350,"timestamp":49400196389,"id":1869,"parentId":1723,"tags":{"name":"/app/components/general/UploadFileComponent.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17667,"timestamp":49400196543,"id":1870,"parentId":1717,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18446,"timestamp":49400196594,"id":1871,"parentId":1723,"tags":{"name":"/app/components/admin/media/NewMediaPopup.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18956,"timestamp":49400196681,"id":1873,"parentId":1723,"tags":{"name":"/app/components/admin/media/NewFolderPopup.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":19500,"timestamp":49400196720,"id":1874,"parentId":1723,"tags":{"name":"/app/components/admin/media/MediaFolderContent.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20978,"timestamp":49400196638,"id":1872,"parentId":1723,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21616,"timestamp":49400196755,"id":1875,"parentId":1723,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22031,"timestamp":49400196790,"id":1876,"parentId":1723,"tags":{"name":"/app/components/general/UploadVideoComponent.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22463,"timestamp":49400196877,"id":1878,"parentId":1722,"tags":{"name":"/app/components/admin/media/MediaContent.jsx","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22607,"timestamp":49400196993,"id":1881,"parentId":1727,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23267,"timestamp":49400196957,"id":1880,"parentId":1724,"tags":{"name":"/app/components/admin/users/UsersContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23745,"timestamp":49400197064,"id":1883,"parentId":1728,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24102,"timestamp":49400197099,"id":1884,"parentId":1729,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25654,"timestamp":49400196917,"id":1879,"parentId":1724,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25574,"timestamp":49400197206,"id":1887,"parentId":1753,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":26961,"timestamp":49400197028,"id":1882,"parentId":1728,"tags":{"name":"/app/components/general/ExtraContentDatabase.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":27669,"timestamp":49400197137,"id":1885,"parentId":1730,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":27889,"timestamp":49400197241,"id":1888,"parentId":1753,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29379,"timestamp":49400197172,"id":1886,"parentId":1731,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29672,"timestamp":49400197274,"id":1889,"parentId":1731,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29973,"timestamp":49400197311,"id":1890,"parentId":1733,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.jsx","layer":null},"startTime":1733747144100,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44928,"timestamp":49400196826,"id":1877,"parentId":1662,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/process.js","layer":null},"startTime":1733747144099,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":3759,"timestamp":49400254483,"id":1893,"parentId":1735,"tags":{"name":"/app/components/admin/databases/TablesContent.jsx","layer":null},"startTime":1733747144157,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":4716,"timestamp":49400254511,"id":1894,"parentId":1737,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.jsx","layer":null},"startTime":1733747144157,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5768,"timestamp":49400254345,"id":1891,"parentId":1732,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.jsx","layer":null},"startTime":1733747144157,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":593,"timestamp":49400266495,"id":1900,"parentId":1734,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1733747144169,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16622,"timestamp":49400254447,"id":1892,"parentId":1736,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.jsx","layer":null},"startTime":1733747144157,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5103,"timestamp":49400266392,"id":1897,"parentId":1734,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.jsx","layer":null},"startTime":1733747144169,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5530,"timestamp":49400266345,"id":1896,"parentId":1734,"tags":{"name":"/app/components/admin/databases/AddTableContent.jsx","layer":null},"startTime":1733747144169,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":15815,"timestamp":49400266231,"id":1895,"parentId":1756,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1733747144169,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":16636,"timestamp":49400266464,"id":1899,"parentId":1740,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.jsx","layer":null},"startTime":1733747144169,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18233,"timestamp":49400266430,"id":1898,"parentId":1739,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.jsx","layer":null},"startTime":1733747144169,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7732,"timestamp":49400277552,"id":1903,"parentId":1742,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8344,"timestamp":49400277368,"id":1901,"parentId":1738,"tags":{"name":"/app/components/admin/users/DbUsersContent.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16255,"timestamp":49400277589,"id":1904,"parentId":1742,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17229,"timestamp":49400277624,"id":1905,"parentId":1746,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":17398,"timestamp":49400277763,"id":1909,"parentId":1776,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18518,"timestamp":49400277658,"id":1906,"parentId":1741,"tags":{"name":"/app/components/admin/databases/EditTableContent.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21103,"timestamp":49400277799,"id":1910,"parentId":1749,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21466,"timestamp":49400277877,"id":1912,"parentId":1743,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22616,"timestamp":49400277847,"id":1911,"parentId":1743,"tags":{"name":"/app/components/admin/databases/SingleTableContent.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23327,"timestamp":49400277932,"id":1914,"parentId":1748,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.jsx","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24541,"timestamp":49400277960,"id":1915,"parentId":1750,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.jsx","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25594,"timestamp":49400277904,"id":1913,"parentId":1747,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.jsx","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13836,"timestamp":49400290283,"id":1922,"parentId":1834,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1733747144193,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38932,"timestamp":49400277493,"id":1902,"parentId":1756,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38955,"timestamp":49400277723,"id":1908,"parentId":1759,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38887,"timestamp":49400278063,"id":1918,"parentId":1771,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/report-global-error.js","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":39543,"timestamp":49400277686,"id":1907,"parentId":1763,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config.js","layer":null},"startTime":1733747144180,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":39305,"timestamp":49400278134,"id":1920,"parentId":1782,"tags":{"name":"/app/node_modules/next/dist/shared/lib/escape-regexp.js","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":39891,"timestamp":49400278099,"id":1919,"parentId":1788,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40295,"timestamp":49400278024,"id":1917,"parentId":1776,"tags":{"name":"/app/node_modules/next/dist/client/trusted-types.js","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41100,"timestamp":49400277988,"id":1916,"parentId":1786,"tags":{"name":"/app/node_modules/next/dist/client/normalize-trailing-slash.js","layer":null},"startTime":1733747144181,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34105,"timestamp":49400290179,"id":1921,"parentId":1766,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","layer":null},"startTime":1733747144193,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34282,"timestamp":49400290323,"id":1923,"parentId":1793,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","layer":null},"startTime":1733747144193,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34518,"timestamp":49400290358,"id":1924,"parentId":1793,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-locale.js","layer":null},"startTime":1733747144193,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":34707,"timestamp":49400290394,"id":1925,"parentId":1792,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","layer":null},"startTime":1733747144193,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4943,"timestamp":49400331679,"id":1935,"parentId":1809,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6196,"timestamp":49400331723,"id":1936,"parentId":1827,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8822,"timestamp":49400331765,"id":1937,"parentId":1804,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10089,"timestamp":49400331786,"id":1938,"parentId":1805,"tags":{"name":"__barrel_optimize__?names=Blocks!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11617,"timestamp":49400331806,"id":1939,"parentId":1813,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12449,"timestamp":49400332258,"id":1949,"parentId":1837,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20081,"timestamp":49400326207,"id":1929,"parentId":1800,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.jsx","layer":null},"startTime":1733747144229,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21058,"timestamp":49400326005,"id":1926,"parentId":1800,"tags":{"name":"/app/functions/frontend/updateNavLinks.js","layer":null},"startTime":1733747144229,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21608,"timestamp":49400326178,"id":1928,"parentId":1800,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.jsx","layer":null},"startTime":1733747144229,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21963,"timestamp":49400326234,"id":1930,"parentId":1803,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.jsx","layer":null},"startTime":1733747144229,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23445,"timestamp":49400326126,"id":1927,"parentId":1800,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.jsx","layer":null},"startTime":1733747144229,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17964,"timestamp":49400331999,"id":1941,"parentId":1812,"tags":{"name":"/app/components/general/FadedImage.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":18677,"timestamp":49400331555,"id":1932,"parentId":1807,"tags":{"name":"/app/components/general/FormAlertBlock.jsx","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24449,"timestamp":49400331644,"id":1934,"parentId":1811,"tags":{"name":"/app/functions/frontend/userLogin.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25077,"timestamp":49400331448,"id":1931,"parentId":1803,"tags":{"name":"/app/components/general/ContainedSection.jsx","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24653,"timestamp":49400332097,"id":1944,"parentId":1813,"tags":{"name":"/app/components/general/IconText.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25183,"timestamp":49400332045,"id":1942,"parentId":1811,"tags":{"name":"/app/components/pages/login/SocialLogin.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25433,"timestamp":49400332121,"id":1945,"parentId":1812,"tags":{"name":"/app/components/general/CodeBlock.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25705,"timestamp":49400332315,"id":1951,"parentId":1831,"tags":{"name":"/app/components/general/DiskUsageComponent.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":26271,"timestamp":49400332342,"id":1952,"parentId":1833,"tags":{"name":"/app/components/general/GeneralPopup.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":27865,"timestamp":49400332072,"id":1943,"parentId":1816,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28319,"timestamp":49400332367,"id":1953,"parentId":1835,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29098,"timestamp":49400332391,"id":1954,"parentId":1835,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":29690,"timestamp":49400332435,"id":1956,"parentId":1831,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":30716,"timestamp":49400332414,"id":1955,"parentId":1831,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":30977,"timestamp":49400332459,"id":1957,"parentId":1832,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":31410,"timestamp":49400332482,"id":1958,"parentId":1832,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":31858,"timestamp":49400332503,"id":1959,"parentId":1832,"tags":{"name":"/app/components/admin/dashboard/Metrics.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":32401,"timestamp":49400332526,"id":1960,"parentId":1842,"tags":{"name":"/app/components/su/xterm.js","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":32690,"timestamp":49400332568,"id":1962,"parentId":1841,"tags":{"name":"/app/components/cards/LinkCard.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":33458,"timestamp":49400332547,"id":1961,"parentId":1843,"tags":{"name":"/app/components/su/SuEnvCard.jsx","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":16241,"timestamp":49400352559,"id":1963,"parentId":1838,"tags":{"name":"/app/components/su/components/UserCard.jsx","layer":null},"startTime":1733747144255,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-process","duration":5751,"timestamp":49400380204,"id":1969,"parentId":1968,"tags":{},"startTime":1733747144283,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-loader","duration":5961,"timestamp":49400380023,"id":1968,"parentId":1966,"tags":{},"startTime":1733747144283,"traceId":"a901697cbe7cbd9f"},{"name":"css-loader","duration":2182,"timestamp":49400386005,"id":1970,"parentId":1966,"tags":{"astUsed":"true"},"startTime":1733747144289,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":9010,"timestamp":49400379786,"id":1966,"parentId":1824,"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":1733747144282,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":125735,"timestamp":49400332282,"id":1950,"parentId":1849,"tags":{"name":"/app/node_modules/react-dom/cjs/react-dom.production.min.js","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":79286,"timestamp":49400379633,"id":1964,"parentId":1844,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.jsx","layer":null},"startTime":1733747144282,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":79603,"timestamp":49400379835,"id":1967,"parentId":1853,"tags":{"name":"/app/components/form/FormSelect.jsx","layer":null},"startTime":1733747144282,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2182,"timestamp":49400461540,"id":1979,"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":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2598,"timestamp":49400461589,"id":1981,"parentId":1886,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4570,"timestamp":49400461812,"id":1990,"parentId":1874,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":137726,"timestamp":49400332213,"id":1948,"parentId":1842,"tags":{"name":"/app/node_modules/ansi-regex/index.js","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":138882,"timestamp":49400331594,"id":1933,"parentId":1771,"tags":{"name":"/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":139183,"timestamp":49400332147,"id":1946,"parentId":1773,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/pages/websocket.js","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":140009,"timestamp":49400332180,"id":1947,"parentId":1771,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","layer":null},"startTime":1733747144235,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11095,"timestamp":49400461388,"id":1973,"parentId":1856,"tags":{"name":"/app/components/general/BackButton.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11670,"timestamp":49400461353,"id":1972,"parentId":1848,"tags":{"name":"/app/components/admin/databases/UserImage.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11883,"timestamp":49400461467,"id":1976,"parentId":1856,"tags":{"name":"/app/components/su/components/UserData.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12267,"timestamp":49400461443,"id":1975,"parentId":1856,"tags":{"name":"/app/components/su/components/UserBackups.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13814,"timestamp":49400461262,"id":1971,"parentId":1850,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14092,"timestamp":49400461491,"id":1977,"parentId":1853,"tags":{"name":"/app/components/admin/databases/UserSchemaVisualizer.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1027,"timestamp":49400479633,"id":1991,"parentId":1872,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144382,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1471,"timestamp":49400479706,"id":1992,"parentId":1875,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144382,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22926,"timestamp":49400461515,"id":1978,"parentId":1858,"tags":{"name":"/app/components/su/components/PageCard.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23269,"timestamp":49400461610,"id":1982,"parentId":1858,"tags":{"name":"/app/components/general/ui/ButtonGroup.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24689,"timestamp":49400461416,"id":1974,"parentId":1852,"tags":{"name":"/app/components/form/FormInput.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":24651,"timestamp":49400461657,"id":1984,"parentId":1853,"tags":{"name":"/app/package-shared/utils/ejson.js","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":24985,"timestamp":49400461634,"id":1983,"parentId":1852,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":25263,"timestamp":49400461680,"id":1985,"parentId":1853,"tags":{"name":"/app/components/general/AceEditor.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":26488,"timestamp":49400461564,"id":1980,"parentId":1888,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":26640,"timestamp":49400461788,"id":1989,"parentId":1863,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":27734,"timestamp":49400461703,"id":1986,"parentId":1862,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28093,"timestamp":49400461765,"id":1988,"parentId":1860,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":28586,"timestamp":49400461733,"id":1987,"parentId":1860,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.jsx","layer":null},"startTime":1733747144364,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":421,"timestamp":49400496108,"id":1996,"parentId":1867,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":121532,"timestamp":49400379743,"id":1965,"parentId":1842,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/index.js","layer":null},"startTime":1733747144282,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5580,"timestamp":49400496046,"id":1994,"parentId":1865,"tags":{"name":"/app/functions/frontend/checkUniqueField.js","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5834,"timestamp":49400496123,"id":1997,"parentId":1869,"tags":{"name":"/app/functions/frontend/inputFileToBase64.js","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6240,"timestamp":49400496080,"id":1995,"parentId":1866,"tags":{"name":"/app/components/admin/databases/DatabasesList.jsx","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6818,"timestamp":49400495942,"id":1993,"parentId":1868,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.js","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6748,"timestamp":49400496172,"id":1999,"parentId":1895,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6919,"timestamp":49400496148,"id":1998,"parentId":1871,"tags":{"name":"/app/functions/frontend/updateDiskUsage.js","layer":null},"startTime":1733747144399,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-process","duration":73559,"timestamp":49400505833,"id":2016,"parentId":2014,"tags":{},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"}] +[{"name":"postcss-process","duration":64415,"timestamp":49400515330,"id":2017,"parentId":2015,"tags":{},"startTime":1733747144418,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-loader","duration":74479,"timestamp":49400505296,"id":2014,"parentId":2003,"tags":{},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-loader","duration":74460,"timestamp":49400505317,"id":2015,"parentId":2004,"tags":{},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"},{"name":"css-loader","duration":9717,"timestamp":49400579807,"id":2018,"parentId":2003,"tags":{"astUsed":"true"},"startTime":1733747144482,"traceId":"a901697cbe7cbd9f"},{"name":"css-loader","duration":9702,"timestamp":49400579833,"id":2019,"parentId":2004,"tags":{"astUsed":"true"},"startTime":1733747144482,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":85953,"timestamp":49400504707,"id":2003,"parentId":1822,"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":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":86973,"timestamp":49400504742,"id":2004,"parentId":1823,"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":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":89033,"timestamp":49400504673,"id":2002,"parentId":1870,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.jsx","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":89562,"timestamp":49400504551,"id":2000,"parentId":1872,"tags":{"name":"/app/functions/frontend/downloadFile.js","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":89848,"timestamp":49400504640,"id":2001,"parentId":1867,"tags":{"name":"/app/components/form/FormCheckboxes.jsx","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":89856,"timestamp":49400504873,"id":2009,"parentId":1872,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.js","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":90249,"timestamp":49400504823,"id":2007,"parentId":1871,"tags":{"name":"/app/components/admin/media/NewFileCard.jsx","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":90605,"timestamp":49400504849,"id":2008,"parentId":1874,"tags":{"name":"/app/components/admin/media/MediaList.jsx","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":91089,"timestamp":49400504793,"id":2006,"parentId":1871,"tags":{"name":"/app/components/admin/media/NewMediaCard.jsx","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":91232,"timestamp":49400504980,"id":2013,"parentId":1922,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":91605,"timestamp":49400504934,"id":2011,"parentId":1880,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.jsx","layer":null},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":92027,"timestamp":49400504958,"id":2012,"parentId":1872,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.jsx","layer":null},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":92437,"timestamp":49400504913,"id":2010,"parentId":1880,"tags":{"name":"/app/components/admin/users/UsersList.jsx","layer":null},"startTime":1733747144408,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8183,"timestamp":49400602647,"id":2020,"parentId":1922,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1733747144505,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8400,"timestamp":49400602812,"id":2022,"parentId":1882,"tags":{"name":"/app/components/general/CopySlug.jsx","layer":null},"startTime":1733747144505,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8734,"timestamp":49400602845,"id":2023,"parentId":1884,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.jsx","layer":null},"startTime":1733747144505,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9258,"timestamp":49400602775,"id":2021,"parentId":1882,"tags":{"name":"/app/functions/frontend/downloadApiStream.js","layer":null},"startTime":1733747144505,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9433,"timestamp":49400602920,"id":2025,"parentId":1885,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.jsx","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9811,"timestamp":49400602891,"id":2024,"parentId":1884,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.jsx","layer":null},"startTime":1733747144505,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9987,"timestamp":49400602973,"id":2027,"parentId":1886,"tags":{"name":"/app/components/general/DatabaseSlugCopy.jsx","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10111,"timestamp":49400603056,"id":2030,"parentId":1935,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10452,"timestamp":49400603026,"id":2029,"parentId":1890,"tags":{"name":"/app/components/admin/users/DatabaseUsers.jsx","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10570,"timestamp":49400603083,"id":2031,"parentId":1936,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11262,"timestamp":49400603001,"id":2028,"parentId":1886,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.jsx","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11331,"timestamp":49400603110,"id":2032,"parentId":1937,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12530,"timestamp":49400602948,"id":2026,"parentId":1883,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.jsx","layer":null},"startTime":1733747144506,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3645,"timestamp":49400621808,"id":2041,"parentId":1951,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4140,"timestamp":49400621840,"id":2042,"parentId":1952,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4491,"timestamp":49400622057,"id":2050,"parentId":1959,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5051,"timestamp":49400622083,"id":2051,"parentId":1912,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5632,"timestamp":49400622105,"id":2052,"parentId":1927,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5943,"timestamp":49400622365,"id":2061,"parentId":1973,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11471,"timestamp":49400621567,"id":2034,"parentId":1939,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11854,"timestamp":49400621461,"id":2033,"parentId":1938,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/blocks.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11942,"timestamp":49400621637,"id":2036,"parentId":1939,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12241,"timestamp":49400621604,"id":2035,"parentId":1939,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12388,"timestamp":49400621724,"id":2039,"parentId":1939,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12696,"timestamp":49400621696,"id":2038,"parentId":1939,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12981,"timestamp":49400621666,"id":2037,"parentId":1939,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13142,"timestamp":49400621778,"id":2040,"parentId":1949,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13713,"timestamp":49400621918,"id":2045,"parentId":1891,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14919,"timestamp":49400621864,"id":2043,"parentId":1893,"tags":{"name":"/app/components/admin/databases/TablesList.jsx","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":17707,"timestamp":49400621947,"id":2046,"parentId":1891,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaVisualizer.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-json","duration":1197,"timestamp":49400644917,"id":2067,"parentId":1911,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3432,"timestamp":49400645264,"id":2078,"parentId":1987,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4068,"timestamp":49400645297,"id":2079,"parentId":1995,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4544,"timestamp":49400645452,"id":2084,"parentId":1953,"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":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5151,"timestamp":49400645477,"id":2085,"parentId":1955,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,Plug2,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5658,"timestamp":49400645500,"id":2086,"parentId":2008,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":32479,"timestamp":49400622002,"id":2048,"parentId":1896,"tags":{"name":"/app/components/admin/databases/AddTableForm.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":33949,"timestamp":49400621891,"id":2044,"parentId":1894,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.jsx","layer":null},"startTime":1733747144524,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":34480,"timestamp":49400621975,"id":2047,"parentId":1892,"tags":{"name":"/app/components/form/FormRadios.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":34735,"timestamp":49400622216,"id":2056,"parentId":1898,"tags":{"name":"/app/components/admin/users/UserImage.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":35528,"timestamp":49400622185,"id":2055,"parentId":1899,"tags":{"name":"/app/components/admin/users/UserListCard.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":36111,"timestamp":49400622259,"id":2057,"parentId":1901,"tags":{"name":"/app/components/admin/users/DbUsersList.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":36583,"timestamp":49400622286,"id":2058,"parentId":1904,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":38292,"timestamp":49400622031,"id":2049,"parentId":1896,"tags":{"name":"/app/components/admin/databases/TableFields.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38193,"timestamp":49400622390,"id":2062,"parentId":1979,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":38431,"timestamp":49400622414,"id":2063,"parentId":1979,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":157041,"timestamp":49400504767,"id":2005,"parentId":1843,"tags":{"name":"/app/node_modules/next/dist/compiled/os-browserify/browser.js","layer":null},"startTime":1733747144407,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":39753,"timestamp":49400622441,"id":2064,"parentId":1979,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":41037,"timestamp":49400622338,"id":2060,"parentId":1910,"tags":{"name":"/app/components/admin/databases/TableEntryForm.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":42163,"timestamp":49400622311,"id":2059,"parentId":1906,"tags":{"name":"/app/components/admin/databases/EditTableForm.jsx","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19918,"timestamp":49400644870,"id":2066,"parentId":1990,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1733747144547,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20258,"timestamp":49400644739,"id":2065,"parentId":1979,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1733747144547,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20422,"timestamp":49400645030,"id":2071,"parentId":1914,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21528,"timestamp":49400644938,"id":2068,"parentId":1911,"tags":{"name":"/app/components/admin/databases/TableEntriesList.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22597,"timestamp":49400644970,"id":2069,"parentId":1911,"tags":{"name":"/app/components/admin/databases/TableIndexes.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22792,"timestamp":49400645075,"id":2072,"parentId":1991,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22983,"timestamp":49400645110,"id":2073,"parentId":1991,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23165,"timestamp":49400645167,"id":2075,"parentId":1992,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23435,"timestamp":49400645140,"id":2074,"parentId":1992,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":23637,"timestamp":49400645194,"id":2076,"parentId":1992,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1590,"timestamp":49400681574,"id":2097,"parentId":1978,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1864,"timestamp":49400681824,"id":2100,"parentId":1967,"tags":{"name":"__barrel_optimize__?names=ChevronDown,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":43394,"timestamp":49400645395,"id":2082,"parentId":1915,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":43682,"timestamp":49400645423,"id":2083,"parentId":1915,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":44349,"timestamp":49400645363,"id":2081,"parentId":1914,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":44476,"timestamp":49400645689,"id":2093,"parentId":1943,"tags":{"name":"/app/functions/frontend/submitNewUserForm.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":45138,"timestamp":49400645619,"id":2091,"parentId":1927,"tags":{"name":"/app/components/general/ThemeSelector.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":45774,"timestamp":49400645656,"id":2092,"parentId":1927,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":46346,"timestamp":49400645719,"id":2094,"parentId":1942,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":49083,"timestamp":49400645745,"id":2095,"parentId":1942,"tags":{"name":"/app/components/pages/login/GithubLogin.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":51549,"timestamp":49400645002,"id":2070,"parentId":1914,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":51647,"timestamp":49400645770,"id":2096,"parentId":1942,"tags":{"name":"/app/components/pages/login/FacebookSignInButton.jsx","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":16348,"timestamp":49400681692,"id":2098,"parentId":2030,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1733747144584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1953,"timestamp":49400704678,"id":2101,"parentId":1964,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144607,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2608,"timestamp":49400704912,"id":2105,"parentId":2043,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144608,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":90911,"timestamp":49400622163,"id":2054,"parentId":1960,"tags":{"name":"/app/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":211560,"timestamp":49400622126,"id":2053,"parentId":1960,"tags":{"name":"/app/node_modules/xterm/lib/xterm.js","layer":null},"startTime":1733747144525,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":129363,"timestamp":49400704941,"id":2106,"parentId":2041,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1733747144608,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":129910,"timestamp":49400704835,"id":2103,"parentId":1955,"tags":{"name":"/app/functions/isLocalSuperUser.js","layer":null},"startTime":1733747144607,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":130150,"timestamp":49400704875,"id":2104,"parentId":1959,"tags":{"name":"/app/components/general/MetricCard.jsx","layer":null},"startTime":1733747144607,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":130246,"timestamp":49400704972,"id":2107,"parentId":2041,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1733747144608,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":131348,"timestamp":49400704776,"id":2102,"parentId":1958,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.jsx","layer":null},"startTime":1733747144607,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2449,"timestamp":49400838258,"id":2113,"parentId":2068,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-js","duration":200818,"timestamp":49400645520,"id":2087,"parentId":1966,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":201420,"timestamp":49400645546,"id":2088,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/url.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":202965,"timestamp":49400645572,"id":2089,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/manager.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-mjs","duration":208942,"timestamp":49400645221,"id":2077,"parentId":1985,"tags":{"name":"/app/node_modules/tailwind-merge/dist/bundle-mjs.mjs","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":210652,"timestamp":49400645593,"id":2090,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/socket.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18399,"timestamp":49400838140,"id":2109,"parentId":2042,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18547,"timestamp":49400838175,"id":2110,"parentId":2050,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18696,"timestamp":49400838201,"id":2111,"parentId":2050,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19001,"timestamp":49400838052,"id":2108,"parentId":2041,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18979,"timestamp":49400838229,"id":2112,"parentId":2051,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19088,"timestamp":49400838323,"id":2115,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19245,"timestamp":49400838345,"id":2116,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19501,"timestamp":49400838299,"id":2114,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19683,"timestamp":49400838368,"id":2117,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19804,"timestamp":49400838390,"id":2118,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19917,"timestamp":49400838435,"id":2119,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20077,"timestamp":49400838461,"id":2120,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20203,"timestamp":49400838485,"id":2121,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20344,"timestamp":49400838508,"id":2122,"parentId":2084,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20465,"timestamp":49400838530,"id":2123,"parentId":2085,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20582,"timestamp":49400838551,"id":2124,"parentId":2085,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20716,"timestamp":49400838573,"id":2125,"parentId":2085,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plug-2.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20831,"timestamp":49400838594,"id":2126,"parentId":2085,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":20943,"timestamp":49400838615,"id":2127,"parentId":2086,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21302,"timestamp":49400838698,"id":2131,"parentId":1971,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21777,"timestamp":49400838678,"id":2130,"parentId":1971,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":22258,"timestamp":49400838635,"id":2128,"parentId":1976,"tags":{"name":"/app/components/su/components/UserFiles.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22477,"timestamp":49400838720,"id":2132,"parentId":1974,"tags":{"name":"/app/functions/frontend/numberFormat.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":22851,"timestamp":49400838740,"id":2133,"parentId":1974,"tags":{"name":"/app/functions/frontend/numberFormatFloat.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":23736,"timestamp":49400838656,"id":2129,"parentId":1976,"tags":{"name":"/app/components/su/components/UserDbShell.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":25607,"timestamp":49400838761,"id":2134,"parentId":1985,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.js","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2101,"timestamp":49400868456,"id":2139,"parentId":2083,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":815764,"timestamp":49400058774,"id":1824,"parentId":1697,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1733747143961,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":822112,"timestamp":49400052991,"id":1822,"parentId":1679,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1733747143956,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":817070,"timestamp":49400058610,"id":1823,"parentId":1679,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1733747143961,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":39858,"timestamp":49400838783,"id":2135,"parentId":1989,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":40450,"timestamp":49400838825,"id":2137,"parentId":1988,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":41644,"timestamp":49400838804,"id":2136,"parentId":1986,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":42245,"timestamp":49400838846,"id":2138,"parentId":1983,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.jsx","layer":null},"startTime":1733747144741,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":199592,"timestamp":49400681771,"id":2099,"parentId":1946,"tags":{"name":"/app/node_modules/next/dist/server/dev/hot-reloader-types.js","layer":null},"startTime":1733747144584,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":236514,"timestamp":49400645321,"id":2080,"parentId":1946,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","layer":null},"startTime":1733747144548,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13637,"timestamp":49400868630,"id":2143,"parentId":2098,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13881,"timestamp":49400868532,"id":2140,"parentId":2098,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14000,"timestamp":49400868577,"id":2141,"parentId":2097,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":14126,"timestamp":49400868606,"id":2142,"parentId":2097,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1827,"timestamp":49400885466,"id":2146,"parentId":2102,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5457,"timestamp":49400885581,"id":2148,"parentId":2105,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5577,"timestamp":49400885643,"id":2150,"parentId":2105,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5840,"timestamp":49400885610,"id":2149,"parentId":2105,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6112,"timestamp":49400885536,"id":2147,"parentId":2105,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6211,"timestamp":49400885810,"id":2155,"parentId":2007,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.jsx","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6708,"timestamp":49400885756,"id":2154,"parentId":2002,"tags":{"name":"/app/components/admin/databases/DatabaseImage.jsx","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9744,"timestamp":49400885840,"id":2156,"parentId":2008,"tags":{"name":"/app/components/admin/media/MediaFolderCard.jsx","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10812,"timestamp":49400885725,"id":2153,"parentId":2002,"tags":{"name":"/app/components/admin/databases/DatabaseForm.jsx","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":11538,"timestamp":49400885869,"id":2157,"parentId":2008,"tags":{"name":"/app/components/admin/media/card/MediaListCard.jsx","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":120,"timestamp":49400904323,"id":2158,"parentId":1824,"tags":{},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":20,"timestamp":49400904459,"id":2159,"parentId":1822,"tags":{},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":16,"timestamp":49400904485,"id":2160,"parentId":1823,"tags":{},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1522,"timestamp":49400904515,"id":2161,"parentId":2137,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Delete,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1930,"timestamp":49400904644,"id":2163,"parentId":2138,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-process","duration":1512,"timestamp":49400906657,"id":2167,"parentId":2166,"tags":{},"startTime":1733747144809,"traceId":"a901697cbe7cbd9f"},{"name":"postcss-loader","duration":2936,"timestamp":49400905250,"id":2166,"parentId":2165,"tags":{},"startTime":1733747144808,"traceId":"a901697cbe7cbd9f"},{"name":"css-loader","duration":4993,"timestamp":49400908200,"id":2168,"parentId":2165,"tags":{"astUsed":"true"},"startTime":1733747144811,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":8878,"timestamp":49400904702,"id":2165,"parentId":1940,"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":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256833,"timestamp":49399657118,"id":1491,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogin.jsx&page=%2Flogin!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256827,"timestamp":49399657141,"id":1499,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fbackups.jsx&page=%2Fsu%2Fbackups!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256814,"timestamp":49399657160,"id":1506,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.jsx&page=%2Fsu%2Ferror-logs!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256804,"timestamp":49399657175,"id":1511,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Findex.jsx&page=%2Fsu!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256820,"timestamp":49399657163,"id":1507,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fenvar.jsx&page=%2Fsu%2Fenvar!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256816,"timestamp":49399657171,"id":1510,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.jsx&page=%2Fsu%2Fload-balancing!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256812,"timestamp":49399657179,"id":1512,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fservers.jsx&page=%2Fsu%2Fservers!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256845,"timestamp":49399657157,"id":1505,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.jsx&page=%2Fsu%2Fdocs!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256821,"timestamp":49399657185,"id":1514,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.jsx&page=%2Fsu%2Fusers!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256797,"timestamp":49399657214,"id":1515,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.jsx&page=%2Fsu%2Fusers%2Fnew!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256852,"timestamp":49399657166,"id":1508,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.jsx&page=%2Fsu%2Fdocs%2Fpages!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1256853,"timestamp":49399657169,"id":1509,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.jsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":47117,"timestamp":49400868688,"id":2145,"parentId":2083,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/Popover.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":56550,"timestamp":49400868657,"id":2144,"parentId":2049,"tags":{"name":"/app/node_modules/gsap/Flip.js","layer":null},"startTime":1733747144771,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":21521,"timestamp":49400904590,"id":2162,"parentId":2139,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1270742,"timestamp":49399656967,"id":1451,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F_app.js&page=%2F_app!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1911,"timestamp":49400928618,"id":2169,"parentId":2155,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2309,"timestamp":49400928690,"id":2170,"parentId":2156,"tags":{"name":"__barrel_optimize__?names=Copy,Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-css","duration":602132,"timestamp":49400331829,"id":1940,"parentId":1812,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1733747144234,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":48942,"timestamp":49400885672,"id":2151,"parentId":2049,"tags":{"name":"/app/node_modules/gsap/index.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":49756,"timestamp":49400885701,"id":2152,"parentId":1877,"tags":{"name":"/app/node_modules/next/dist/compiled/process/browser.js","layer":null},"startTime":1733747144788,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6932,"timestamp":49400928825,"id":2174,"parentId":2049,"tags":{"name":"/app/functions/frontend/addNewTempField.js","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7389,"timestamp":49400928797,"id":2173,"parentId":2043,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.jsx","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7834,"timestamp":49400928769,"id":2172,"parentId":2043,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.jsx","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8756,"timestamp":49400928722,"id":2171,"parentId":2043,"tags":{"name":"/app/components/admin/databases/TableListCard.jsx","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8956,"timestamp":49400928851,"id":2175,"parentId":2060,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.js","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9197,"timestamp":49400928875,"id":2176,"parentId":2069,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.js","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9804,"timestamp":49400928900,"id":2177,"parentId":2049,"tags":{"name":"/app/components/general/ExpandBlock.jsx","layer":null},"startTime":1733747144831,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10328,"timestamp":49400928926,"id":2178,"parentId":2049,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.js","layer":null},"startTime":1733747144832,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10957,"timestamp":49400928954,"id":2179,"parentId":2048,"tags":{"name":"/app/components/admin/databases/NewTableForm.jsx","layer":null},"startTime":1733747144832,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1287775,"timestamp":49399656952,"id":1448,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7749,"timestamp":49400944511,"id":2184,"parentId":2049,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8663,"timestamp":49400944539,"id":2185,"parentId":2049,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":9578,"timestamp":49400944466,"id":2183,"parentId":2049,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13782,"timestamp":49400944428,"id":2182,"parentId":2048,"tags":{"name":"/app/components/admin/databases/CloneTableForm.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14706,"timestamp":49400944565,"id":2186,"parentId":2060,"tags":{"name":"/app/components/admin/databases/TableEntryField.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":15280,"timestamp":49400944640,"id":2189,"parentId":2069,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":16508,"timestamp":49400944590,"id":2187,"parentId":2068,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":56767,"timestamp":49400904671,"id":2164,"parentId":2089,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/on.js","layer":null},"startTime":1733747144807,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18260,"timestamp":49400944667,"id":2190,"parentId":2060,"tags":{"name":"/app/functions/frontend/newEntryHandler.js","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":19499,"timestamp":49400944615,"id":2188,"parentId":2069,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.jsx","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":19736,"timestamp":49400944692,"id":2191,"parentId":2082,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.js","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8602,"timestamp":49400955986,"id":2195,"parentId":2163,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1733747144859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8896,"timestamp":49400955835,"id":2192,"parentId":2161,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1733747144858,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8974,"timestamp":49400955926,"id":2193,"parentId":2161,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/delete.js","layer":null},"startTime":1733747144859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9139,"timestamp":49400955958,"id":2194,"parentId":2163,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1733747144859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module","duration":44,"timestamp":49400972713,"id":2199,"parentId":1940,"tags":{},"startTime":1733747144875,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1203,"timestamp":49400972777,"id":2200,"parentId":2173,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144875,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1560,"timestamp":49400972856,"id":2201,"parentId":2171,"tags":{"name":"__barrel_optimize__?names=ChevronRight,DatabaseBackup,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144875,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20288,"timestamp":49400956030,"id":2196,"parentId":2092,"tags":{"name":"/app/layouts/components/AdminUserDropdown.jsx","layer":null},"startTime":1733747144859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20690,"timestamp":49400956085,"id":2198,"parentId":2070,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.jsx","layer":null},"startTime":1733747144859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21412,"timestamp":49400956060,"id":2197,"parentId":2083,"tags":{"name":"/app/components/admin/databases/SyncDataButton.jsx","layer":null},"startTime":1733747144859,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5746,"timestamp":49400972951,"id":2204,"parentId":2170,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1733747144876,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5953,"timestamp":49400972924,"id":2203,"parentId":2169,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1733747144876,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6145,"timestamp":49400972883,"id":2202,"parentId":2169,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1733747144875,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":42601,"timestamp":49400944261,"id":2180,"parentId":2089,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/contrib/backo2.js","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5497,"timestamp":49400982101,"id":2215,"parentId":2129,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":5942,"timestamp":49400982072,"id":2214,"parentId":2128,"tags":{"name":"/app/components/su/components/UserSingleFile.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6426,"timestamp":49400982025,"id":2213,"parentId":2128,"tags":{"name":"/app/components/su/components/UserFolder.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":6803,"timestamp":49400982127,"id":2216,"parentId":2130,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7117,"timestamp":49400982149,"id":2217,"parentId":2130,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7494,"timestamp":49400982194,"id":2219,"parentId":2130,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":7847,"timestamp":49400982224,"id":2220,"parentId":2130,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8124,"timestamp":49400982268,"id":2221,"parentId":2130,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":8586,"timestamp":49400982296,"id":2222,"parentId":2130,"tags":{"name":"/app/components/general/Modal.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1912,"timestamp":49400993978,"id":2225,"parentId":2186,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":18584,"timestamp":49400982319,"id":2223,"parentId":2138,"tags":{"name":"/app/components/su/components/RichText/fns.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":20147,"timestamp":49400982171,"id":2218,"parentId":2130,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":21238,"timestamp":49400982340,"id":2224,"parentId":2138,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.jsx","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":59693,"timestamp":49400944348,"id":2181,"parentId":2080,"tags":{"name":"/app/node_modules/next/dist/shared/lib/normalized-asset-prefix.js","layer":null},"startTime":1733747144847,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10204,"timestamp":49400994278,"id":2231,"parentId":2157,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.jsx","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10638,"timestamp":49400994243,"id":2230,"parentId":2153,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":10953,"timestamp":49400994312,"id":2232,"parentId":2157,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.jsx","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11535,"timestamp":49400994164,"id":2229,"parentId":2153,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11485,"timestamp":49400994402,"id":2235,"parentId":2184,"tags":{"name":"/app/functions/frontend/addNewField.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12111,"timestamp":49400994343,"id":2233,"parentId":2157,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.jsx","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":12965,"timestamp":49400994373,"id":2234,"parentId":2179,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.jsx","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1170,"timestamp":49401013014,"id":2237,"parentId":2196,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3320,"timestamp":49401012919,"id":2236,"parentId":2200,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3803,"timestamp":49401013076,"id":2239,"parentId":2185,"tags":{"name":"/app/functions/frontend/reorderField.js","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3922,"timestamp":49401013170,"id":2242,"parentId":2188,"tags":{"name":"/app/functions/frontend/addNewIndex.js","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363407,"timestamp":49399656959,"id":1449,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F404.jsx&page=%2F404!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363389,"timestamp":49399656987,"id":1453,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fabout.jsx&page=%2Fabout!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363417,"timestamp":49399656963,"id":1450,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F500.jsx&page=%2F500!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363275,"timestamp":49399657109,"id":1488,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcontact.jsx&page=%2Fcontact!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363268,"timestamp":49399657121,"id":1492,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Findex.jsx&page=%2F!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363264,"timestamp":49399657129,"id":1495,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fprivacy.jsx&page=%2Fprivacy!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363270,"timestamp":49399657127,"id":1494,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcreate-account.jsx&page=%2Fcreate-account!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363262,"timestamp":49399657138,"id":1498,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fredirect.jsx&page=%2Fredirect!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363186,"timestamp":49399657218,"id":1516,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fterms.jsx&page=%2Fterms!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363266,"timestamp":49399657143,"id":1500,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsend-password-reset-link.jsx&page=%2Fsend-password-reset-link!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363259,"timestamp":49399657154,"id":1504,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Freset-password.jsx&page=%2Freset-password!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363195,"timestamp":49399657222,"id":1517,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Funsubscribe.jsx&page=%2Funsubscribe!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363315,"timestamp":49399657105,"id":1487,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fblog%2Findex.jsx&page=%2Fblog!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363312,"timestamp":49399657112,"id":1489,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2Findex.jsx&page=%2Fdocs!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363292,"timestamp":49399657135,"id":1497,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Femail-verification%2Findex.jsx&page=%2Femail-verification!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363316,"timestamp":49399657115,"id":1490,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.jsx&page=%2Fdocs%2F%5Bpage%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363310,"timestamp":49399657123,"id":1493,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.jsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363335,"timestamp":49399657102,"id":1486,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2Findex.jsx&page=%2Fadmin!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363369,"timestamp":49399657072,"id":1476,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363358,"timestamp":49399657087,"id":1481,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363456,"timestamp":49399656994,"id":1455,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363462,"timestamp":49399656990,"id":1454,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363393,"timestamp":49399657063,"id":1473,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363382,"timestamp":49399657077,"id":1478,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363364,"timestamp":49399657099,"id":1485,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363465,"timestamp":49399657001,"id":1456,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363462,"timestamp":49399657009,"id":1458,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363379,"timestamp":49399657095,"id":1484,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363421,"timestamp":49399657058,"id":1471,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363421,"timestamp":49399657060,"id":1472,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363399,"timestamp":49399657090,"id":1482,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363399,"timestamp":49399657092,"id":1483,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363449,"timestamp":49399657046,"id":1467,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363444,"timestamp":49399657055,"id":1470,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363491,"timestamp":49399657013,"id":1459,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363456,"timestamp":49399657052,"id":1469,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363496,"timestamp":49399657016,"id":1460,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1363450,"timestamp":49399657066,"id":1474,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1746,"timestamp":49401019311,"id":2243,"parentId":2214,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144922,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2061,"timestamp":49401019407,"id":2244,"parentId":2213,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144922,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1364736,"timestamp":49399657074,"id":1477,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1364749,"timestamp":49399657069,"id":1475,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1364817,"timestamp":49399657005,"id":1457,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40417,"timestamp":49400981848,"id":2205,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/PopoverPortal.js","layer":null},"startTime":1733747144884,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":40569,"timestamp":49400981945,"id":2208,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useMemoizedArray.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":41598,"timestamp":49400981926,"id":2207,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/usePopover.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":42275,"timestamp":49400981979,"id":2210,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useArrowContainer.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":42682,"timestamp":49400981994,"id":2211,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/ArrowContainer.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":43606,"timestamp":49400981903,"id":2206,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/util.js","layer":null},"startTime":1733747144884,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":43644,"timestamp":49400982009,"id":2212,"parentId":1983,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/index.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":43975,"timestamp":49400981962,"id":2209,"parentId":2145,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useHandlePrevValues.js","layer":null},"startTime":1733747144885,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13757,"timestamp":49401013129,"id":2241,"parentId":2186,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.js","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14478,"timestamp":49401013104,"id":2240,"parentId":2184,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.jsx","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1372719,"timestamp":49399657183,"id":1513,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.jsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":927,"timestamp":49401029460,"id":2249,"parentId":2224,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144932,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1310,"timestamp":49401029535,"id":2250,"parentId":2233,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144932,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12349,"timestamp":49401019612,"id":2248,"parentId":2197,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.js","layer":null},"startTime":1733747144922,"traceId":"a901697cbe7cbd9f"}] +[{"name":"build-module-jsx","duration":13191,"timestamp":49401019562,"id":2247,"parentId":2186,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.jsx","layer":null},"startTime":1733747144922,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":13715,"timestamp":49401019475,"id":2245,"parentId":2186,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.jsx","layer":null},"startTime":1733747144922,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":14958,"timestamp":49401019528,"id":2246,"parentId":2189,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.jsx","layer":null},"startTime":1733747144922,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":49807,"timestamp":49400994109,"id":2227,"parentId":2151,"tags":{"name":"/app/node_modules/gsap/CSSPlugin.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":51652,"timestamp":49400994138,"id":2228,"parentId":2144,"tags":{"name":"/app/node_modules/gsap/utils/matrix.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":72728,"timestamp":49400994065,"id":2226,"parentId":2151,"tags":{"name":"/app/node_modules/gsap/gsap-core.js","layer":null},"startTime":1733747144897,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1412065,"timestamp":49399657049,"id":1468,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1412087,"timestamp":49399657037,"id":1464,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1412102,"timestamp":49399657027,"id":1462,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":58323,"timestamp":49401013044,"id":2238,"parentId":1950,"tags":{"name":"/app/node_modules/scheduler/index.js","layer":null},"startTime":1733747144916,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1705,"timestamp":49401075262,"id":2251,"parentId":2250,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1733747144978,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1420364,"timestamp":49399657084,"id":1480,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1420383,"timestamp":49399657080,"id":1479,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2204,"timestamp":49401075730,"id":2254,"parentId":2245,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.js","layer":null},"startTime":1733747144978,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":2583,"timestamp":49401075693,"id":2253,"parentId":2247,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.jsx","layer":null},"startTime":1733747144978,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":3063,"timestamp":49401075634,"id":2252,"parentId":2246,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.js","layer":null},"startTime":1733747144978,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5407,"timestamp":49401075757,"id":2255,"parentId":2207,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useElementRef.js","layer":null},"startTime":1733747144978,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":903,"timestamp":49401082169,"id":2260,"parentId":2253,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1733747144985,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8152,"timestamp":49401077383,"id":2256,"parentId":2212,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.js","layer":null},"startTime":1733747144980,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10129,"timestamp":49401079830,"id":2257,"parentId":2238,"tags":{"name":"/app/node_modules/scheduler/cjs/scheduler.production.min.js","layer":null},"startTime":1733747144982,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4526,"timestamp":49401085866,"id":2261,"parentId":2254,"tags":{"name":"/app/functions/frontend/handleCopyHTML.js","layer":null},"startTime":1733747144988,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4617,"timestamp":49401086059,"id":2263,"parentId":2254,"tags":{"name":"/app/functions/frontend/handleEmbed.js","layer":null},"startTime":1733747144989,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":4969,"timestamp":49401085974,"id":2262,"parentId":2254,"tags":{"name":"/app/functions/frontend/handleEditHTML.js","layer":null},"startTime":1733747144989,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1434517,"timestamp":49399656983,"id":1452,"parentId":1446,"tags":{"request":"/app/node_modules/next/dist/client/router.js"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1434619,"timestamp":49399656889,"id":1447,"parentId":1446,"tags":{"request":"./node_modules/next/dist/client/next.js"},"startTime":1733747143559,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12496,"timestamp":49401081520,"id":2258,"parentId":1965,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/index.js","layer":null},"startTime":1733747144984,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12784,"timestamp":49401081563,"id":2259,"parentId":1965,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/index.js","layer":null},"startTime":1733747144984,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2569,"timestamp":49401094810,"id":2265,"parentId":2260,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1733747144997,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":2828,"timestamp":49401094715,"id":2264,"parentId":2260,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1733747144997,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":3413,"timestamp":49401100309,"id":2266,"parentId":2261,"tags":{"name":"/app/components/general/EmbedPopupContent.jsx","layer":null},"startTime":1733747145003,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-jsx","duration":3805,"timestamp":49401100402,"id":2267,"parentId":2262,"tags":{"name":"/app/components/general/EditHTMLPopupContent.jsx","layer":null},"startTime":1733747145003,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":5463,"timestamp":49401100457,"id":2269,"parentId":2256,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.js","layer":null},"startTime":1733747145003,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6188,"timestamp":49401100433,"id":2268,"parentId":2256,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.js","layer":null},"startTime":1733747145003,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":6986,"timestamp":49401100495,"id":2271,"parentId":2256,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.js","layer":null},"startTime":1733747145003,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":7575,"timestamp":49401100477,"id":2270,"parentId":2256,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js","layer":null},"startTime":1733747145003,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":8074,"timestamp":49401101215,"id":2273,"parentId":2258,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/binary.js","layer":null},"startTime":1733747145004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10217,"timestamp":49401101244,"id":2274,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/socket.js","layer":null},"startTime":1733747145004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10676,"timestamp":49401101265,"id":2275,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transport.js","layer":null},"startTime":1733747145004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11161,"timestamp":49401101158,"id":2272,"parentId":2258,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/is-binary.js","layer":null},"startTime":1733747145004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11255,"timestamp":49401101338,"id":2277,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/globals.js","layer":null},"startTime":1733747145004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11730,"timestamp":49401101302,"id":2276,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/util.js","layer":null},"startTime":1733747145004,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":10769,"timestamp":49401105025,"id":2279,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-xhr.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11206,"timestamp":49401104985,"id":2278,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-fetch.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11523,"timestamp":49401105105,"id":2282,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/webtransport.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":11708,"timestamp":49401105049,"id":2280,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/index.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12245,"timestamp":49401105123,"id":2283,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseuri.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":12955,"timestamp":49401105077,"id":2281,"parentId":2259,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/websocket.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":13356,"timestamp":49401105145,"id":2284,"parentId":2089,"tags":{"name":"/app/node_modules/@socket.io/component-emitter/lib/esm/index.js","layer":null},"startTime":1733747145008,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":9559,"timestamp":49401114161,"id":2285,"parentId":2267,"tags":{"name":"/app/node_modules/html-prettify/src/index.js","layer":null},"startTime":1733747145017,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1111,"timestamp":49401124238,"id":2286,"parentId":2274,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseqs.js","layer":null},"startTime":1733747145027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1684,"timestamp":49401124482,"id":2287,"parentId":2279,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling.js","layer":null},"startTime":1733747145027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1834,"timestamp":49401124511,"id":2288,"parentId":2279,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/has-cors.js","layer":null},"startTime":1733747145027,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":780,"timestamp":49401126900,"id":2289,"parentId":2285,"tags":{"name":"/app/node_modules/html-prettify/src/utils/addIndentation.js","layer":null},"startTime":1733747145029,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1055,"timestamp":49401126933,"id":2290,"parentId":2285,"tags":{"name":"/app/node_modules/html-prettify/src/utils/toLines.js","layer":null},"startTime":1733747145030,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1471019,"timestamp":49399657033,"id":1463,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1471033,"timestamp":49399657040,"id":1465,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1471057,"timestamp":49399657021,"id":1461,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1471037,"timestamp":49399657043,"id":1466,"parentId":1446,"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.jsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":360,"timestamp":49401128166,"id":2291,"parentId":2271,"tags":{"name":"/app/node_modules/prop-types/index.js","layer":null},"startTime":1733747145031,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":409,"timestamp":49401129444,"id":2292,"parentId":2291,"tags":{"name":"/app/node_modules/prop-types/factoryWithThrowingShims.js","layer":null},"startTime":1733747145032,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1436,"timestamp":49401129518,"id":2293,"parentId":2274,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/index.js","layer":null},"startTime":1733747145032,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":913,"timestamp":49401131894,"id":2294,"parentId":2293,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","layer":null},"startTime":1733747145034,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1414,"timestamp":49401131979,"id":2295,"parentId":2293,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/decodePacket.browser.js","layer":null},"startTime":1733747145035,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1885,"timestamp":49401132008,"id":2296,"parentId":2293,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/commons.js","layer":null},"startTime":1733747145035,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":1882,"timestamp":49401132221,"id":2297,"parentId":2292,"tags":{"name":"/app/node_modules/prop-types/lib/ReactPropTypesSecret.js","layer":null},"startTime":1733747145035,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1477015,"timestamp":49399657146,"id":1501,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.jsx&page=%2Fsu%2Fdocs%2Fcreate-page!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1477018,"timestamp":49399657151,"id":1503,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.jsx&page=%2Fsu%2Fdocs%2Fedit-page!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"build-module-js","duration":620,"timestamp":49401134456,"id":2298,"parentId":2295,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","layer":null},"startTime":1733747145037,"traceId":"a901697cbe7cbd9f"},{"name":"add-entry","duration":1477985,"timestamp":49399657149,"id":1502,"parentId":1446,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fconsole.jsx&page=%2Fsu%2Fconsole!"},"startTime":1733747143560,"traceId":"a901697cbe7cbd9f"},{"name":"make","duration":1478560,"timestamp":49399656638,"id":1446,"parentId":1445,"tags":{},"startTime":1733747143559,"traceId":"a901697cbe7cbd9f"},{"name":"chunk-graph","duration":25863,"timestamp":49401178067,"id":2300,"parentId":2299,"tags":{},"startTime":1733747145081,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-modules","duration":8,"timestamp":49401203998,"id":2302,"parentId":2299,"tags":{},"startTime":1733747145107,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-chunks","duration":16768,"timestamp":49401204145,"id":2303,"parentId":2299,"tags":{},"startTime":1733747145107,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-tree","duration":13,"timestamp":49401220967,"id":2304,"parentId":2299,"tags":{},"startTime":1733747145124,"traceId":"a901697cbe7cbd9f"},{"name":"optimize-chunk-modules","duration":31953,"timestamp":49401221118,"id":2305,"parentId":2299,"tags":{},"startTime":1733747145124,"traceId":"a901697cbe7cbd9f"},{"name":"optimize","duration":49135,"timestamp":49401203977,"id":2301,"parentId":2299,"tags":{},"startTime":1733747145107,"traceId":"a901697cbe7cbd9f"},{"name":"module-hash","duration":27799,"timestamp":49401261988,"id":2306,"parentId":2299,"tags":{},"startTime":1733747145165,"traceId":"a901697cbe7cbd9f"},{"name":"code-generation","duration":277025,"timestamp":49401289826,"id":2307,"parentId":2299,"tags":{},"startTime":1733747145192,"traceId":"a901697cbe7cbd9f"},{"name":"hash","duration":7465,"timestamp":49401577965,"id":2308,"parentId":2299,"tags":{},"startTime":1733747145481,"traceId":"a901697cbe7cbd9f"},{"name":"code-generation-jobs","duration":203,"timestamp":49401585428,"id":2309,"parentId":2299,"tags":{},"startTime":1733747145488,"traceId":"a901697cbe7cbd9f"},{"name":"module-assets","duration":355,"timestamp":49401585570,"id":2310,"parentId":2299,"tags":{},"startTime":1733747145488,"traceId":"a901697cbe7cbd9f"},{"name":"create-chunk-assets","duration":13364,"timestamp":49401585936,"id":2311,"parentId":2299,"tags":{},"startTime":1733747145489,"traceId":"a901697cbe7cbd9f"},{"name":"NextJsBuildManifest-generateClientManifest","duration":2090,"timestamp":49401609047,"id":2313,"parentId":1445,"tags":{},"startTime":1733747145512,"traceId":"a901697cbe7cbd9f"},{"name":"NextJsBuildManifest-createassets","duration":3475,"timestamp":49401607676,"id":2312,"parentId":1445,"tags":{},"startTime":1733747145510,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":108378,"timestamp":49401630003,"id":2316,"parentId":2314,"tags":{"name":"static/chunks/pages/_error-158556db7d796075.js","cache":"MISS"},"startTime":1733747145533,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":108406,"timestamp":49401630039,"id":2317,"parentId":2314,"tags":{"name":"static/chunks/pages/404-d3be0a86fd3678cf.js","cache":"MISS"},"startTime":1733747145533,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":108318,"timestamp":49401630150,"id":2318,"parentId":2314,"tags":{"name":"static/chunks/pages/500-f11e82ac7d66d7bb.js","cache":"MISS"},"startTime":1733747145533,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":107404,"timestamp":49401631085,"id":2320,"parentId":2314,"tags":{"name":"static/chunks/pages/about-c047a055959f9e36.js","cache":"MISS"},"startTime":1733747145534,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":107278,"timestamp":49401631252,"id":2321,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/api-keys-f28946cc6963ccf9.js","cache":"MISS"},"startTime":1733747145534,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":108322,"timestamp":49401630240,"id":2319,"parentId":2314,"tags":{"name":"static/chunks/pages/_app-44c7242e74015da3.js","cache":"MISS"},"startTime":1733747145533,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":106540,"timestamp":49401632071,"id":2322,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/connect-e50451186e58599d.js","cache":"MISS"},"startTime":1733747145535,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":105052,"timestamp":49401633586,"id":2324,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-6aa37f085c32fb31.js","cache":"MISS"},"startTime":1733747145536,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":105577,"timestamp":49401633081,"id":2323,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/connect-1dba75ac7cb9ebad.js","cache":"MISS"},"startTime":1733747145536,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":104803,"timestamp":49401633875,"id":2325,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/shell-7eb89b5c12b99925.js","cache":"MISS"},"startTime":1733747145536,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":104440,"timestamp":49401634264,"id":2326,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]-6e864b78c360dc49.js","cache":"MISS"},"startTime":1733747145537,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":103300,"timestamp":49401635427,"id":2328,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-4cc1adf18787829a.js","cache":"MISS"},"startTime":1733747145538,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":103913,"timestamp":49401634833,"id":2327,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/schema-95e8dd03ad7c6a06.js","cache":"MISS"},"startTime":1733747145537,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":102383,"timestamp":49401636384,"id":2330,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-8024b2e1401983d0.js","cache":"MISS"},"startTime":1733747145539,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":102880,"timestamp":49401635906,"id":2329,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-57698ade1c7f0765.js","cache":"MISS"},"startTime":1733747145538,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":102112,"timestamp":49401636694,"id":2331,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-945538ec0fc0b0a7.js","cache":"MISS"},"startTime":1733747145539,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":100773,"timestamp":49401638052,"id":2333,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ff447534e3b2bafc.js","cache":"MISS"},"startTime":1733747145541,"traceId":"a901697cbe7cbd9f"}] +[{"name":"minify-js","duration":100991,"timestamp":49401638193,"id":2334,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-a94b66837c400d17.js","cache":"MISS"},"startTime":1733747145541,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":96228,"timestamp":49401642981,"id":2336,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables-dcf740bfd5b6043a.js","cache":"MISS"},"startTime":1733747145546,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":102240,"timestamp":49401637015,"id":2332,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-200b750a1d54ab23.js","cache":"MISS"},"startTime":1733747145540,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":101752,"timestamp":49401638471,"id":2335,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-89f86ad8d27962ba.js","cache":"MISS"},"startTime":1733747145541,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":98433,"timestamp":49401643283,"id":2337,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-4c92ed1d49bb3ade.js","cache":"MISS"},"startTime":1733747145546,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":98066,"timestamp":49401644065,"id":2340,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases-ab3ab0465518f781.js","cache":"MISS"},"startTime":1733747145547,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":103007,"timestamp":49401643853,"id":2339,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-8638f09e55b93d73.js","cache":"MISS"},"startTime":1733747145546,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":104586,"timestamp":49401643516,"id":2338,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-cfed17c2c3dbdc2a.js","cache":"MISS"},"startTime":1733747145546,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":104086,"timestamp":49401644438,"id":2343,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]-8cd567a45d19f285.js","cache":"MISS"},"startTime":1733747145547,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":104669,"timestamp":49401644088,"id":2341,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users-2c07a215e8b1844b.js","cache":"MISS"},"startTime":1733747145547,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":105481,"timestamp":49401644367,"id":2342,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/add-database-ab8db775e056ed0b.js","cache":"MISS"},"startTime":1733747145547,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":107329,"timestamp":49401644932,"id":2346,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/media-40ea936905622f51.js","cache":"MISS"},"startTime":1733747145548,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":108960,"timestamp":49401644460,"id":2344,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/settings-342a5e743fad8482.js","cache":"MISS"},"startTime":1733747145547,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":110480,"timestamp":49401645094,"id":2347,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/media/[...folder]-6b62e8d93e0375ac.js","cache":"MISS"},"startTime":1733747145548,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":113050,"timestamp":49401644669,"id":2345,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/add-user-ab482f93dfcbcad0.js","cache":"MISS"},"startTime":1733747145547,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":117179,"timestamp":49401645271,"id":2348,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/schema-d80b040d32aa39ec.js","cache":"MISS"},"startTime":1733747145548,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":118133,"timestamp":49401645769,"id":2350,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]-fceda461648030cf.js","cache":"MISS"},"startTime":1733747145548,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":120006,"timestamp":49401645540,"id":2349,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-8995148ebfecac95.js","cache":"MISS"},"startTime":1733747145548,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":119931,"timestamp":49401645946,"id":2351,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases-3db26019e8f19ba3.js","cache":"MISS"},"startTime":1733747145549,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":120274,"timestamp":49401646426,"id":2353,"parentId":2314,"tags":{"name":"static/chunks/pages/admin-94357d2bafa89374.js","cache":"MISS"},"startTime":1733747145549,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":120244,"timestamp":49401646497,"id":2354,"parentId":2314,"tags":{"name":"static/chunks/pages/blog-a8a33a7d5621105d.js","cache":"MISS"},"startTime":1733747145549,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":122415,"timestamp":49401646590,"id":2355,"parentId":2314,"tags":{"name":"static/chunks/pages/contact-3869bcc89874f637.js","cache":"MISS"},"startTime":1733747145549,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":123018,"timestamp":49401646800,"id":2356,"parentId":2314,"tags":{"name":"static/chunks/pages/docs-7c4791ef7bc1770a.js","cache":"MISS"},"startTime":1733747145549,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":124683,"timestamp":49401646108,"id":2352,"parentId":2314,"tags":{"name":"static/chunks/pages/admin/[user_id]/users-5bce6df1085f95c2.js","cache":"MISS"},"startTime":1733747145549,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":124827,"timestamp":49401647005,"id":2357,"parentId":2314,"tags":{"name":"static/chunks/pages/docs/[page]-cc4ca4653a2d03ad.js","cache":"MISS"},"startTime":1733747145550,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":126064,"timestamp":49401647128,"id":2358,"parentId":2314,"tags":{"name":"static/chunks/pages/login-a5ec360e993a8c69.js","cache":"MISS"},"startTime":1733747145550,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":126986,"timestamp":49401647287,"id":2359,"parentId":2314,"tags":{"name":"static/chunks/pages/index-2cd214ffbfab8c5f.js","cache":"MISS"},"startTime":1733747145550,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":126878,"timestamp":49401647553,"id":2360,"parentId":2314,"tags":{"name":"static/chunks/pages/docs/[page]/[sub-page]-eef188f5189b6cd5.js","cache":"MISS"},"startTime":1733747145550,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":127862,"timestamp":49401647644,"id":2361,"parentId":2314,"tags":{"name":"static/chunks/pages/create-account-4811a08ebba7a216.js","cache":"MISS"},"startTime":1733747145550,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":129408,"timestamp":49401647964,"id":2363,"parentId":2314,"tags":{"name":"static/chunks/pages/logout-baf174c366113e34.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":129434,"timestamp":49401648033,"id":2364,"parentId":2314,"tags":{"name":"static/chunks/pages/email-verification-911373dc605e3680.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":129936,"timestamp":49401647759,"id":2362,"parentId":2314,"tags":{"name":"static/chunks/pages/privacy-cf61eebe523439da.js","cache":"MISS"},"startTime":1733747145550,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":130465,"timestamp":49401648115,"id":2365,"parentId":2314,"tags":{"name":"static/chunks/pages/redirect-bc1ef797a5958a5d.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":130985,"timestamp":49401648484,"id":2368,"parentId":2314,"tags":{"name":"static/chunks/pages/su/docs/create-page-bc6278bfecd56b48.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":131698,"timestamp":49401648363,"id":2367,"parentId":2314,"tags":{"name":"static/chunks/pages/send-password-reset-link-8e28cf664ab914f4.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":132284,"timestamp":49401648647,"id":2370,"parentId":2314,"tags":{"name":"static/chunks/pages/su/docs/edit-page-6f303c8b5bff2569.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":133369,"timestamp":49401648163,"id":2366,"parentId":2314,"tags":{"name":"static/chunks/pages/su/backups-dd8d348bd7552c26.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":133628,"timestamp":49401648771,"id":2372,"parentId":2314,"tags":{"name":"static/chunks/pages/su/docs-f2445eeeae7f9a23.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":133923,"timestamp":49401648525,"id":2369,"parentId":2314,"tags":{"name":"static/chunks/pages/su/console-3b0fd9864c5e6c0f.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":134887,"timestamp":49401648687,"id":2371,"parentId":2314,"tags":{"name":"static/chunks/pages/reset-password-96d3c466c04d3b40.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":135306,"timestamp":49401649130,"id":2375,"parentId":2314,"tags":{"name":"static/chunks/pages/su/docs/pages-12382c470c6b6e5a.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":136306,"timestamp":49401649169,"id":2376,"parentId":2314,"tags":{"name":"static/chunks/pages/su/docs/pages/[id]-acc29f791359a531.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":137704,"timestamp":49401648980,"id":2374,"parentId":2314,"tags":{"name":"static/chunks/pages/su/envar-ac5c5fcaa60cda05.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":139072,"timestamp":49401648813,"id":2373,"parentId":2314,"tags":{"name":"static/chunks/pages/su/error-logs-131243ff0bc8350a.js","cache":"MISS"},"startTime":1733747145551,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":141879,"timestamp":49401649454,"id":2378,"parentId":2314,"tags":{"name":"static/chunks/pages/su-f5c1d2829ae62d3b.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":142241,"timestamp":49401649566,"id":2379,"parentId":2314,"tags":{"name":"static/chunks/pages/su/servers-7dfae349147e2b04.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":143859,"timestamp":49401649237,"id":2377,"parentId":2314,"tags":{"name":"static/chunks/pages/su/load-balancing-829115d5381c27b3.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":144988,"timestamp":49401650136,"id":2381,"parentId":2314,"tags":{"name":"static/chunks/pages/su/users-7dfea8108f059169.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":145948,"timestamp":49401650262,"id":2382,"parentId":2314,"tags":{"name":"static/chunks/pages/su/users/new-e33e6730ca9a68fd.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":170293,"timestamp":49401627018,"id":2315,"parentId":2314,"tags":{"name":"static/chunks/main-06cc9931c10fd0dd.js","cache":"MISS"},"startTime":1733747145530,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":147309,"timestamp":49401650627,"id":2384,"parentId":2314,"tags":{"name":"static/chunks/pages/unsubscribe-6f2a5aa3a43f81a8.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":148007,"timestamp":49401650692,"id":2385,"parentId":2314,"tags":{"name":"static/chunks/pages/su/login-386aae5d3f48c201.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":148644,"timestamp":49401650380,"id":2383,"parentId":2314,"tags":{"name":"static/chunks/pages/terms-d8e2638761c13c64.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":149646,"timestamp":49401650758,"id":2386,"parentId":2314,"tags":{"name":"static/chunks/webpack-810c18afc07353bc.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":152727,"timestamp":49401649690,"id":2380,"parentId":2314,"tags":{"name":"static/chunks/pages/su/users/[single]-f5e0e39f5c37ad38.js","cache":"MISS"},"startTime":1733747145552,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":244366,"timestamp":49401652775,"id":2389,"parentId":2314,"tags":{"name":"static/chunks/94726e6d-32f68157960855f5.js","cache":"MISS"},"startTime":1733747145555,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":266797,"timestamp":49401653883,"id":2391,"parentId":2314,"tags":{"name":"static/chunks/8717-6b744eb0e3603e7d.js","cache":"MISS"},"startTime":1733747145556,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":282338,"timestamp":49401654245,"id":2392,"parentId":2314,"tags":{"name":"static/chunks/1391-080ec9229321da22.js","cache":"MISS"},"startTime":1733747145557,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":286935,"timestamp":49401651165,"id":2388,"parentId":2314,"tags":{"name":"static/chunks/29107295-4162eac4082347dd.js","cache":"MISS"},"startTime":1733747145554,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":301304,"timestamp":49401655743,"id":2394,"parentId":2314,"tags":{"name":"static/chunks/2004-989bd6ee1a0836e5.js","cache":"MISS"},"startTime":1733747145558,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":331089,"timestamp":49401650806,"id":2387,"parentId":2314,"tags":{"name":"static/chunks/framework-efef230bfc598a3c.js","cache":"MISS"},"startTime":1733747145553,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":330319,"timestamp":49401657452,"id":2396,"parentId":2314,"tags":{"name":"static/chunks/8779-2595622178479c7a.js","cache":"MISS"},"startTime":1733747145560,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":338738,"timestamp":49401657605,"id":2397,"parentId":2314,"tags":{"name":"static/chunks/9799-c09327b5d8f911bf.js","cache":"MISS"},"startTime":1733747145560,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":344699,"timestamp":49401658113,"id":2398,"parentId":2314,"tags":{"name":"static/chunks/304-b8d7a7206704a9e8.js","cache":"MISS"},"startTime":1733747145561,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":347953,"timestamp":49401656096,"id":2395,"parentId":2314,"tags":{"name":"static/chunks/2793-2d190b821661fe93.js","cache":"MISS"},"startTime":1733747145559,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":352471,"timestamp":49401654678,"id":2393,"parentId":2314,"tags":{"name":"static/chunks/2413-88143337cfbee401.js","cache":"MISS"},"startTime":1733747145557,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":349147,"timestamp":49401658515,"id":2400,"parentId":2314,"tags":{"name":"static/chunks/2016-ab83fcf9773fa412.js","cache":"MISS"},"startTime":1733747145561,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":349703,"timestamp":49401658327,"id":2399,"parentId":2314,"tags":{"name":"static/chunks/5414-e39e0295d31af343.js","cache":"MISS"},"startTime":1733747145561,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":359722,"timestamp":49401658851,"id":2401,"parentId":2314,"tags":{"name":"static/chunks/6836-69ac9f41016d4890.js","cache":"MISS"},"startTime":1733747145561,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":365263,"timestamp":49401660040,"id":2403,"parentId":2314,"tags":{"name":"static/chunks/6156-fc2cb87802851b6a.js","cache":"MISS"},"startTime":1733747145563,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":366584,"timestamp":49401659350,"id":2402,"parentId":2314,"tags":{"name":"static/chunks/5160-c0011c74520be311.js","cache":"MISS"},"startTime":1733747145562,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":369338,"timestamp":49401660847,"id":2404,"parentId":2314,"tags":{"name":"static/chunks/3616-433a6ce04bdfe74c.js","cache":"MISS"},"startTime":1733747145563,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":371846,"timestamp":49401662080,"id":2406,"parentId":2314,"tags":{"name":"static/chunks/3857-5fdc9fdbc2ceb616.js","cache":"MISS"},"startTime":1733747145565,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":373006,"timestamp":49401662352,"id":2407,"parentId":2314,"tags":{"name":"static/chunks/4565-fa373900e5abcc2e.js","cache":"MISS"},"startTime":1733747145565,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":376971,"timestamp":49401661402,"id":2405,"parentId":2314,"tags":{"name":"static/chunks/2163-39dbea13be99f540.js","cache":"MISS"},"startTime":1733747145564,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":376589,"timestamp":49401662494,"id":2408,"parentId":2314,"tags":{"name":"static/chunks/3061-aee06042dd421240.js","cache":"MISS"},"startTime":1733747145565,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":381225,"timestamp":49401671491,"id":2410,"parentId":2314,"tags":{"name":"static/chunks/6803-b0a26b8f89e9e859.js","cache":"MISS"},"startTime":1733747145574,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":380611,"timestamp":49401672182,"id":2411,"parentId":2314,"tags":{"name":"static/chunks/6052-982ccd1835268374.js","cache":"MISS"},"startTime":1733747145575,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":383309,"timestamp":49401672813,"id":2413,"parentId":2314,"tags":{"name":"static/chunks/820-8d322b018f353254.js","cache":"MISS"},"startTime":1733747145575,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":383547,"timestamp":49401672613,"id":2412,"parentId":2314,"tags":{"name":"static/chunks/9907-dc7dcf5051f39917.js","cache":"MISS"},"startTime":1733747145575,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":385473,"timestamp":49401673936,"id":2415,"parentId":2314,"tags":{"name":"static/chunks/9654-14672554e04b07a1.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":398736,"timestamp":49401662634,"id":2409,"parentId":2314,"tags":{"name":"static/chunks/6460-e917713dc5c7b593.js","cache":"MISS"},"startTime":1733747145565,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":390573,"timestamp":49401674129,"id":2416,"parentId":2314,"tags":{"name":"static/chunks/5165-5987c77b92545418.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":390272,"timestamp":49401674471,"id":2418,"parentId":2314,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":390376,"timestamp":49401674498,"id":2419,"parentId":2314,"tags":{"name":"static/HcU1grNdeICz9zVVD_7aa/_ssgManifest.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":391449,"timestamp":49401674322,"id":2417,"parentId":2314,"tags":{"name":"static/chunks/4147-e7e7f44833e9033a.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":392051,"timestamp":49401674510,"id":2420,"parentId":2314,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":392059,"timestamp":49401674532,"id":2422,"parentId":2314,"tags":{"name":"server/next-font-manifest.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":392950,"timestamp":49401674521,"id":2421,"parentId":2314,"tags":{"name":"static/HcU1grNdeICz9zVVD_7aa/_buildManifest.js","cache":"MISS"},"startTime":1733747145577,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":408953,"timestamp":49401673025,"id":2414,"parentId":2314,"tags":{"name":"static/chunks/5256-94c62ad4f1f6dabc.js","cache":"MISS"},"startTime":1733747145576,"traceId":"a901697cbe7cbd9f"},{"name":"minify-js","duration":447557,"timestamp":49401653393,"id":2390,"parentId":2314,"tags":{"name":"static/chunks/ed150ef9-4bae487078acc5bf.js","cache":"MISS"},"startTime":1733747145556,"traceId":"a901697cbe7cbd9f"},{"name":"minify-webpack-plugin-optimize","duration":489339,"timestamp":49401611636,"id":2314,"parentId":1445,"tags":{"compilationName":"client"},"startTime":1733747145514,"traceId":"a901697cbe7cbd9f"},{"name":"minify-css","duration":369247,"timestamp":49402101180,"id":2424,"parentId":2423,"tags":{"file":"static/css/6c8d5d8aa134f06a.css","cache":"MISS"},"startTime":1733747146004,"traceId":"a901697cbe7cbd9f"},{"name":"minify-css","duration":369219,"timestamp":49402101230,"id":2425,"parentId":2423,"tags":{"file":"static/css/9b1cffe2c89f6bb5.css","cache":"MISS"},"startTime":1733747146004,"traceId":"a901697cbe7cbd9f"},{"name":"minify-css","duration":369216,"timestamp":49402101235,"id":2426,"parentId":2423,"tags":{"file":"static/css/2c3db85a1d7310ee.css","cache":"MISS"},"startTime":1733747146004,"traceId":"a901697cbe7cbd9f"},{"name":"css-minimizer-plugin","duration":369344,"timestamp":49402101111,"id":2423,"parentId":1445,"tags":{},"startTime":1733747146004,"traceId":"a901697cbe7cbd9f"},{"name":"seal","duration":1324108,"timestamp":49401158875,"id":2299,"parentId":1445,"tags":{},"startTime":1733747145061,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-compilation","duration":2827936,"timestamp":49399655170,"id":1445,"parentId":13,"tags":{"name":"client"},"startTime":1733747143558,"traceId":"a901697cbe7cbd9f"},{"name":"emit","duration":6190,"timestamp":49402483179,"id":2427,"parentId":13,"tags":{},"startTime":1733747146386,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-close","duration":794299,"timestamp":49402489516,"id":2428,"parentId":13,"tags":{"name":"client"},"startTime":1733747146392,"traceId":"a901697cbe7cbd9f"},{"name":"webpack-generate-error-stats","duration":1131,"timestamp":49403283842,"id":2429,"parentId":2428,"tags":{},"startTime":1733747147186,"traceId":"a901697cbe7cbd9f"}] +[{"name":"run-webpack-compiler","duration":27410351,"timestamp":49375875484,"id":13,"parentId":1,"tags":{},"startTime":1733747119778,"traceId":"a901697cbe7cbd9f"},{"name":"format-webpack-messages","duration":129,"timestamp":49403285845,"id":2430,"parentId":1,"tags":{},"startTime":1733747147188,"traceId":"a901697cbe7cbd9f"},{"name":"check-static-error-page","duration":8123,"timestamp":49403524530,"id":2433,"parentId":2432,"tags":{},"startTime":1733747147427,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":10234,"timestamp":49403570606,"id":2435,"parentId":2432,"tags":{"page":"/_error"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":51232,"timestamp":49403569695,"id":2434,"parentId":2432,"tags":{"page":"/_app"},"startTime":1733747147472,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":50292,"timestamp":49403570673,"id":2436,"parentId":2432,"tags":{"page":"/_document"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49064,"timestamp":49403571927,"id":2473,"parentId":2432,"tags":{"page":"/api/acceptUserInvitation"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49065,"timestamp":49403571959,"id":2474,"parentId":2432,"tags":{"page":"/api/addAdminUserUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49066,"timestamp":49403571983,"id":2475,"parentId":2432,"tags":{"page":"/api/addApiKey"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49062,"timestamp":49403572002,"id":2476,"parentId":2432,"tags":{"page":"/api/addDbUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49051,"timestamp":49403572035,"id":2478,"parentId":2432,"tags":{"page":"/api/addSocialLogin"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49053,"timestamp":49403572051,"id":2479,"parentId":2432,"tags":{"page":"/api/addTableEntry"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49097,"timestamp":49403572019,"id":2477,"parentId":2432,"tags":{"page":"/api/addNewMediaFolder"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49267,"timestamp":49403572068,"id":2480,"parentId":2432,"tags":{"page":"/api/addUserMedia"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49289,"timestamp":49403572084,"id":2481,"parentId":2432,"tags":{"page":"/api/addUserTable"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49294,"timestamp":49403572100,"id":2482,"parentId":2432,"tags":{"page":"/api/addUserUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49296,"timestamp":49403572118,"id":2483,"parentId":2432,"tags":{"page":"/api/addUsersTableToDatabase"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49289,"timestamp":49403572142,"id":2484,"parentId":2432,"tags":{"page":"/api/admin/addUserBackup"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49284,"timestamp":49403572159,"id":2485,"parentId":2432,"tags":{"page":"/api/admin/clearErrorLogs"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49266,"timestamp":49403572191,"id":2487,"parentId":2432,"tags":{"page":"/api/admin/createNewBackup"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49293,"timestamp":49403572175,"id":2486,"parentId":2432,"tags":{"page":"/api/admin/clientError"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49278,"timestamp":49403572206,"id":2488,"parentId":2432,"tags":{"page":"/api/admin/docs/[action]"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49245,"timestamp":49403572256,"id":2491,"parentId":2432,"tags":{"page":"/api/admin/getUserData"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49293,"timestamp":49403572222,"id":2489,"parentId":2432,"tags":{"page":"/api/admin/getTablesForUserDatabase"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49253,"timestamp":49403572274,"id":2492,"parentId":2432,"tags":{"page":"/api/admin/grabBackups"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49246,"timestamp":49403572290,"id":2493,"parentId":2432,"tags":{"page":"/api/admin/grabErrorLogs"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49242,"timestamp":49403572306,"id":2494,"parentId":2432,"tags":{"page":"/api/admin/grabFile"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49237,"timestamp":49403572324,"id":2495,"parentId":2432,"tags":{"page":"/api/admin/loginSuUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49333,"timestamp":49403572237,"id":2490,"parentId":2432,"tags":{"page":"/api/admin/getUserBackups"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49244,"timestamp":49403572340,"id":2496,"parentId":2432,"tags":{"page":"/api/admin/runUserDbQuery"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49239,"timestamp":49403572356,"id":2497,"parentId":2432,"tags":{"page":"/api/admin/updateEnv"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49236,"timestamp":49403572373,"id":2498,"parentId":2432,"tags":{"page":"/api/changeDbUserPassword"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49232,"timestamp":49403572391,"id":2499,"parentId":2432,"tags":{"page":"/api/checkDuplicateData"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49227,"timestamp":49403572409,"id":2500,"parentId":2432,"tags":{"page":"/api/checkExistingFolder"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49219,"timestamp":49403572426,"id":2501,"parentId":2432,"tags":{"page":"/api/clientSideAuth"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49218,"timestamp":49403572443,"id":2502,"parentId":2432,"tags":{"page":"/api/connect/disconnect"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49215,"timestamp":49403572461,"id":2503,"parentId":2432,"tags":{"page":"/api/connect/handshake"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49190,"timestamp":49403572498,"id":2505,"parentId":2432,"tags":{"page":"/api/connect/verify"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49184,"timestamp":49403572516,"id":2506,"parentId":2432,"tags":{"page":"/api/contact"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49189,"timestamp":49403572533,"id":2507,"parentId":2432,"tags":{"page":"/api/createUserDatabase"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49209,"timestamp":49403572550,"id":2508,"parentId":2432,"tags":{"page":"/api/deleteApiKey"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49204,"timestamp":49403572568,"id":2509,"parentId":2432,"tags":{"page":"/api/deleteDbUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49197,"timestamp":49403572584,"id":2510,"parentId":2432,"tags":{"page":"/api/deleteInvitation"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49196,"timestamp":49403572602,"id":2511,"parentId":2432,"tags":{"page":"/api/deleteMediaFolder"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49333,"timestamp":49403572479,"id":2504,"parentId":2432,"tags":{"page":"/api/connect"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49207,"timestamp":49403572619,"id":2512,"parentId":2432,"tags":{"page":"/api/deleteTableEntry"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49206,"timestamp":49403572638,"id":2513,"parentId":2432,"tags":{"page":"/api/deleteUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49204,"timestamp":49403572655,"id":2514,"parentId":2432,"tags":{"page":"/api/deleteUserDatabase"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49188,"timestamp":49403572691,"id":2516,"parentId":2432,"tags":{"page":"/api/deleteUserTable"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49221,"timestamp":49403572673,"id":2515,"parentId":2432,"tags":{"page":"/api/deleteUserMedia"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49196,"timestamp":49403572709,"id":2517,"parentId":2432,"tags":{"page":"/api/deleteUserUser"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49190,"timestamp":49403572727,"id":2518,"parentId":2432,"tags":{"page":"/api/downloadDatabaseSchema"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49182,"timestamp":49403572744,"id":2519,"parentId":2432,"tags":{"page":"/api/exportDatabase"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49243,"timestamp":49403572764,"id":2520,"parentId":2432,"tags":{"page":"/api/exportTableData"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49245,"timestamp":49403572781,"id":2521,"parentId":2432,"tags":{"page":"/api/fetch-entries-basic"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49290,"timestamp":49403572798,"id":2522,"parentId":2432,"tags":{"page":"/api/fetch-media"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49293,"timestamp":49403572814,"id":2523,"parentId":2432,"tags":{"page":"/api/get-authorized-databases"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49290,"timestamp":49403572830,"id":2524,"parentId":2432,"tags":{"page":"/api/getDatabaseTables"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49289,"timestamp":49403572846,"id":2525,"parentId":2432,"tags":{"page":"/api/getDelegatedDatabaseToken"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49276,"timestamp":49403572877,"id":2527,"parentId":2432,"tags":{"page":"/api/getDiskUsage"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49304,"timestamp":49403572861,"id":2526,"parentId":2432,"tags":{"page":"/api/getDelegatedDatabases"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49285,"timestamp":49403572892,"id":2528,"parentId":2432,"tags":{"page":"/api/getUserDatabaseTables"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49281,"timestamp":49403572907,"id":2529,"parentId":2432,"tags":{"page":"/api/getUserDatabases"},"startTime":1733747147475,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49260,"timestamp":49403572941,"id":2531,"parentId":2432,"tags":{"page":"/api/getUserSchemaData"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49286,"timestamp":49403572924,"id":2530,"parentId":2432,"tags":{"page":"/api/getUserMedia"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49248,"timestamp":49403572974,"id":2533,"parentId":2432,"tags":{"page":"/api/importDatabase"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49273,"timestamp":49403572958,"id":2532,"parentId":2432,"tags":{"page":"/api/healthcheck"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49255,"timestamp":49403572992,"id":2534,"parentId":2432,"tags":{"page":"/api/importDatabaseSchema"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49252,"timestamp":49403573009,"id":2535,"parentId":2432,"tags":{"page":"/api/infiniteScroll"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49260,"timestamp":49403573026,"id":2536,"parentId":2432,"tags":{"page":"/api/loginUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49258,"timestamp":49403573041,"id":2537,"parentId":2432,"tags":{"page":"/api/logoutUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49263,"timestamp":49403573057,"id":2538,"parentId":2432,"tags":{"page":"/api/media/addPrivateMedia"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49258,"timestamp":49403573073,"id":2539,"parentId":2432,"tags":{"page":"/api/media/getPrivateMedia"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49257,"timestamp":49403573088,"id":2540,"parentId":2432,"tags":{"page":"/api/purgeDb"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49329,"timestamp":49403573103,"id":2541,"parentId":2432,"tags":{"page":"/api/query/[user_id]/add-file"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49379,"timestamp":49403573126,"id":2542,"parentId":2432,"tags":{"page":"/api/query/[user_id]/add-image"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49424,"timestamp":49403573152,"id":2543,"parentId":2432,"tags":{"page":"/api/query/[user_id]/delete-file"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49474,"timestamp":49403573169,"id":2544,"parentId":2432,"tags":{"page":"/api/query/[user_id]/get-private-file"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49479,"timestamp":49403573185,"id":2545,"parentId":2432,"tags":{"page":"/api/query/[user_id]/get-schema"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49503,"timestamp":49403573221,"id":2547,"parentId":2432,"tags":{"page":"/api/query/[user_id]/post"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49505,"timestamp":49403573238,"id":2548,"parentId":2432,"tags":{"page":"/api/query/[user_id]/update-schema-from-single-database"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49554,"timestamp":49403573202,"id":2546,"parentId":2432,"tags":{"page":"/api/query/[user_id]/get"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49514,"timestamp":49403573256,"id":2549,"parentId":2432,"tags":{"page":"/api/queryEntriesSearchTerm"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49509,"timestamp":49403573272,"id":2550,"parentId":2432,"tags":{"page":"/api/reAuthenticateUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49506,"timestamp":49403573289,"id":2551,"parentId":2432,"tags":{"page":"/api/refreshEntry"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49518,"timestamp":49403573306,"id":2552,"parentId":2432,"tags":{"page":"/api/registerUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49518,"timestamp":49403573323,"id":2553,"parentId":2432,"tags":{"page":"/api/renameMedia"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49509,"timestamp":49403573341,"id":2554,"parentId":2432,"tags":{"page":"/api/resetDelegatedDatabaseToken"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49502,"timestamp":49403573358,"id":2555,"parentId":2432,"tags":{"page":"/api/resetPassword"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49484,"timestamp":49403573390,"id":2557,"parentId":2432,"tags":{"page":"/api/sendEmailVerificationLink"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49482,"timestamp":49403573405,"id":2558,"parentId":2432,"tags":{"page":"/api/sendPasswordResetLink"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49482,"timestamp":49403573421,"id":2559,"parentId":2432,"tags":{"page":"/api/social-login/facebook-auth"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49477,"timestamp":49403573439,"id":2560,"parentId":2432,"tags":{"page":"/api/social-login/github-auth"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49472,"timestamp":49403573458,"id":2561,"parentId":2432,"tags":{"page":"/api/social-login/google-auth"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49465,"timestamp":49403573475,"id":2562,"parentId":2432,"tags":{"page":"/api/social-login/utils/checkEmail"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49575,"timestamp":49403573374,"id":2556,"parentId":2432,"tags":{"page":"/api/runUserDbQuery"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49468,"timestamp":49403573491,"id":2563,"parentId":2432,"tags":{"page":"/api/social-login/utils/checkSocialId"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49462,"timestamp":49403573507,"id":2564,"parentId":2432,"tags":{"page":"/api/social-login/utils/getEmailFromSocialId"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49444,"timestamp":49403573539,"id":2566,"parentId":2432,"tags":{"page":"/api/sql-users/delete"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49474,"timestamp":49403573523,"id":2565,"parentId":2432,"tags":{"page":"/api/sql-users/create"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49457,"timestamp":49403573553,"id":2567,"parentId":2432,"tags":{"page":"/api/sql-users/update"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"}] +[{"name":"check-page","duration":49607,"timestamp":49403573568,"id":2568,"parentId":2432,"tags":{"page":"/api/stream/[path]"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49612,"timestamp":49403573584,"id":2569,"parentId":2432,"tags":{"page":"/api/sync-table-data"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49595,"timestamp":49403573615,"id":2571,"parentId":2432,"tags":{"page":"/api/test/mail"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49619,"timestamp":49403573600,"id":2570,"parentId":2432,"tags":{"page":"/api/test/cors"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49596,"timestamp":49403573632,"id":2572,"parentId":2432,"tags":{"page":"/api/unsubscribe"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49592,"timestamp":49403573648,"id":2573,"parentId":2432,"tags":{"page":"/api/updateAdminUserAccess"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49575,"timestamp":49403573681,"id":2575,"parentId":2432,"tags":{"page":"/api/updateDbSchemaDataForUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49570,"timestamp":49403573698,"id":2576,"parentId":2432,"tags":{"page":"/api/updateDbUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49569,"timestamp":49403573714,"id":2577,"parentId":2432,"tags":{"page":"/api/updateTableEntry"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49566,"timestamp":49403573732,"id":2578,"parentId":2432,"tags":{"page":"/api/updateUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49567,"timestamp":49403573749,"id":2579,"parentId":2432,"tags":{"page":"/api/updateUserDatabase"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49663,"timestamp":49403573665,"id":2574,"parentId":2432,"tags":{"page":"/api/updateClonedTableForeignKeys"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49581,"timestamp":49403573765,"id":2580,"parentId":2432,"tags":{"page":"/api/updateUserTable"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49579,"timestamp":49403573780,"id":2581,"parentId":2432,"tags":{"page":"/api/updateUserUser"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49577,"timestamp":49403573795,"id":2582,"parentId":2432,"tags":{"page":"/api/user-schema/replace-database-schema"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49574,"timestamp":49403573811,"id":2583,"parentId":2432,"tags":{"page":"/api/user/[user_id]/add-user"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49567,"timestamp":49403573828,"id":2584,"parentId":2432,"tags":{"page":"/api/user/[user_id]/delete-user"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49562,"timestamp":49403573845,"id":2585,"parentId":2432,"tags":{"page":"/api/user/[user_id]/get-user"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49556,"timestamp":49403573863,"id":2586,"parentId":2432,"tags":{"page":"/api/user/[user_id]/github-login"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49547,"timestamp":49403573882,"id":2587,"parentId":2432,"tags":{"page":"/api/user/[user_id]/google-login"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49540,"timestamp":49403573900,"id":2588,"parentId":2432,"tags":{"page":"/api/user/[user_id]/grab-google-user-from-token"},"startTime":1733747147476,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49533,"timestamp":49403573918,"id":2589,"parentId":2432,"tags":{"page":"/api/user/[user_id]/login-user"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49510,"timestamp":49403573954,"id":2591,"parentId":2432,"tags":{"page":"/api/user/[user_id]/send-email-code"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49537,"timestamp":49403573937,"id":2590,"parentId":2432,"tags":{"page":"/api/user/[user_id]/reauth-user"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49497,"timestamp":49403573990,"id":2593,"parentId":2432,"tags":{"page":"/api/webhooks/github-push"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":49526,"timestamp":49403573973,"id":2592,"parentId":2432,"tags":{"page":"/api/user/[user_id]/update-user"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":377671,"timestamp":49403626903,"id":2639,"parentId":2450,"tags":{},"startTime":1733747147529,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":433473,"timestamp":49403571201,"id":2450,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":386966,"timestamp":49403627319,"id":2641,"parentId":2454,"tags":{},"startTime":1733747147530,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":442836,"timestamp":49403571483,"id":2454,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":390447,"timestamp":49403627120,"id":2640,"parentId":2451,"tags":{},"startTime":1733747147530,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":446247,"timestamp":49403571355,"id":2451,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":396806,"timestamp":49403627640,"id":2643,"parentId":2455,"tags":{},"startTime":1733747147530,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":452974,"timestamp":49403571507,"id":2455,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":399146,"timestamp":49403627823,"id":2644,"parentId":2456,"tags":{},"startTime":1733747147530,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":455486,"timestamp":49403571530,"id":2456,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":403818,"timestamp":49403627994,"id":2645,"parentId":2457,"tags":{},"startTime":1733747147531,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":460290,"timestamp":49403571553,"id":2457,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":407964,"timestamp":49403628181,"id":2646,"parentId":2458,"tags":{},"startTime":1733747147531,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":464599,"timestamp":49403571578,"id":2458,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-user"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":414799,"timestamp":49403627500,"id":2642,"parentId":2453,"tags":{},"startTime":1733747147530,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":470877,"timestamp":49403571454,"id":2453,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/add-table"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":423499,"timestamp":49403628589,"id":2648,"parentId":2459,"tags":{},"startTime":1733747147531,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":480522,"timestamp":49403571605,"id":2459,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/users"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":428491,"timestamp":49403628768,"id":2649,"parentId":2460,"tags":{},"startTime":1733747147531,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":485666,"timestamp":49403571628,"id":2460,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/add-database"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":440566,"timestamp":49403628940,"id":2650,"parentId":2461,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":497889,"timestamp":49403571652,"id":2461,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":443863,"timestamp":49403629101,"id":2651,"parentId":2462,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":501323,"timestamp":49403571673,"id":2462,"parentId":2432,"tags":{"page":"/admin/[user_id]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":447717,"timestamp":49403628373,"id":2647,"parentId":2452,"tags":{},"startTime":1733747147531,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":504708,"timestamp":49403571415,"id":2452,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":450893,"timestamp":49403629279,"id":2652,"parentId":2463,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":508509,"timestamp":49403571695,"id":2463,"parentId":2432,"tags":{"page":"/admin/[user_id]/media/[...folder]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":454305,"timestamp":49403629431,"id":2653,"parentId":2464,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":512053,"timestamp":49403571715,"id":2464,"parentId":2432,"tags":{"page":"/admin/[user_id]/media"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":455110,"timestamp":49403629555,"id":2654,"parentId":2465,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":512949,"timestamp":49403571746,"id":2465,"parentId":2432,"tags":{"page":"/admin/[user_id]/schema"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":458190,"timestamp":49403629821,"id":2656,"parentId":2467,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":516242,"timestamp":49403571803,"id":2467,"parentId":2432,"tags":{"page":"/admin/[user_id]/users/add-user"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":462056,"timestamp":49403629687,"id":2655,"parentId":2466,"tags":{},"startTime":1733747147532,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":520002,"timestamp":49403571772,"id":2466,"parentId":2432,"tags":{"page":"/admin/[user_id]/settings"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":462425,"timestamp":49403629976,"id":2657,"parentId":2468,"tags":{},"startTime":1733747147533,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":520597,"timestamp":49403571827,"id":2468,"parentId":2432,"tags":{"page":"/admin/[user_id]/users/databases/[database]/[user]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":464939,"timestamp":49403630320,"id":2659,"parentId":2470,"tags":{},"startTime":1733747147533,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":523421,"timestamp":49403571868,"id":2470,"parentId":2432,"tags":{"page":"/admin/[user_id]/users/databases"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":465833,"timestamp":49403630156,"id":2658,"parentId":2469,"tags":{},"startTime":1733747147533,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":524168,"timestamp":49403571847,"id":2469,"parentId":2432,"tags":{"page":"/admin/[user_id]/users/databases/[database]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":467466,"timestamp":49403630639,"id":2661,"parentId":2472,"tags":{},"startTime":1733747147533,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":526225,"timestamp":49403571908,"id":2472,"parentId":2432,"tags":{"page":"/admin"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":468162,"timestamp":49403630482,"id":2660,"parentId":2471,"tags":{},"startTime":1733747147533,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":526780,"timestamp":49403571888,"id":2471,"parentId":2432,"tags":{"page":"/admin/[user_id]/users"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":469473,"timestamp":49403630799,"id":2662,"parentId":2594,"tags":{},"startTime":1733747147533,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":526291,"timestamp":49403574009,"id":2594,"parentId":2432,"tags":{"page":"/blog"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":469888,"timestamp":49403630955,"id":2663,"parentId":2595,"tags":{},"startTime":1733747147534,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":526832,"timestamp":49403574029,"id":2595,"parentId":2432,"tags":{"page":"/contact"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":481447,"timestamp":49403623925,"id":2628,"parentId":2440,"tags":{},"startTime":1733747147527,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":534568,"timestamp":49403570837,"id":2440,"parentId":2432,"tags":{"page":"/admin/[user_id]/api-keys"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":502110,"timestamp":49403624112,"id":2629,"parentId":2439,"tags":{},"startTime":1733747147527,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":555454,"timestamp":49403570807,"id":2439,"parentId":2432,"tags":{"page":"/about"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":498684,"timestamp":49403631616,"id":2667,"parentId":2599,"tags":{},"startTime":1733747147534,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":556229,"timestamp":49403574105,"id":2599,"parentId":2432,"tags":{"page":"/docs"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":505696,"timestamp":49403631848,"id":2668,"parentId":2600,"tags":{},"startTime":1733747147534,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":563457,"timestamp":49403574123,"id":2600,"parentId":2432,"tags":{"page":"/email-verification"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":515144,"timestamp":49403631999,"id":2669,"parentId":2601,"tags":{},"startTime":1733747147535,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":573038,"timestamp":49403574140,"id":2601,"parentId":2432,"tags":{"page":"/"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":526587,"timestamp":49403623742,"id":2627,"parentId":2438,"tags":{},"startTime":1733747147526,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":579597,"timestamp":49403570766,"id":2438,"parentId":2432,"tags":{"page":"/500"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":525122,"timestamp":49403632350,"id":2671,"parentId":2603,"tags":{},"startTime":1733747147535,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":583331,"timestamp":49403574176,"id":2603,"parentId":2432,"tags":{"page":"/logout"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":527080,"timestamp":49403631133,"id":2664,"parentId":2596,"tags":{},"startTime":1733747147534,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":584194,"timestamp":49403574048,"id":2596,"parentId":2432,"tags":{"page":"/create-account"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":535508,"timestamp":49403623518,"id":2626,"parentId":2437,"tags":{},"startTime":1733747147526,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":588341,"timestamp":49403570713,"id":2437,"parentId":2432,"tags":{"page":"/404"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":527681,"timestamp":49403632673,"id":2673,"parentId":2605,"tags":{},"startTime":1733747147535,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":586173,"timestamp":49403574211,"id":2605,"parentId":2432,"tags":{"page":"/redirect"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":529883,"timestamp":49403633132,"id":2675,"parentId":2607,"tags":{},"startTime":1733747147536,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":588797,"timestamp":49403574250,"id":2607,"parentId":2432,"tags":{"page":"/send-password-reset-link"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":541903,"timestamp":49403624501,"id":2631,"parentId":2441,"tags":{},"startTime":1733747147527,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":595570,"timestamp":49403570865,"id":2441,"parentId":2432,"tags":{"page":"/admin/[user_id]/connect"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":537195,"timestamp":49403632165,"id":2670,"parentId":2602,"tags":{},"startTime":1733747147535,"traceId":"a901697cbe7cbd9f"}] +[{"name":"check-page","duration":595587,"timestamp":49403574158,"id":2602,"parentId":2432,"tags":{"page":"/login"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":537381,"timestamp":49403632518,"id":2672,"parentId":2604,"tags":{},"startTime":1733747147535,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":595728,"timestamp":49403574193,"id":2604,"parentId":2432,"tags":{"page":"/privacy"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":551124,"timestamp":49403624312,"id":2630,"parentId":2442,"tags":{},"startTime":1733747147527,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":604576,"timestamp":49403570892,"id":2442,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/connect"},"startTime":1733747147473,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":542115,"timestamp":49403633481,"id":2677,"parentId":2608,"tags":{},"startTime":1733747147536,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":601344,"timestamp":49403574269,"id":2608,"parentId":2432,"tags":{"page":"/su/backups"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":548285,"timestamp":49403633949,"id":2680,"parentId":2612,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":607919,"timestamp":49403574356,"id":2612,"parentId":2432,"tags":{"page":"/su/docs"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":574955,"timestamp":49403633643,"id":2678,"parentId":2610,"tags":{},"startTime":1733747147536,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":634327,"timestamp":49403574308,"id":2610,"parentId":2432,"tags":{"page":"/su/docs/create-page"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":575019,"timestamp":49403633798,"id":2679,"parentId":2611,"tags":{},"startTime":1733747147536,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":634509,"timestamp":49403574332,"id":2611,"parentId":2432,"tags":{"page":"/su/docs/edit-page"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":574725,"timestamp":49403634263,"id":2682,"parentId":2613,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":634635,"timestamp":49403574374,"id":2613,"parentId":2432,"tags":{"page":"/su/docs/pages/[id]"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":575018,"timestamp":49403634113,"id":2681,"parentId":2614,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":634751,"timestamp":49403574396,"id":2614,"parentId":2432,"tags":{"page":"/su/docs/pages"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":576333,"timestamp":49403632925,"id":2674,"parentId":2606,"tags":{},"startTime":1733747147536,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":635045,"timestamp":49403574229,"id":2606,"parentId":2432,"tags":{"page":"/reset-password"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":586031,"timestamp":49403624686,"id":2632,"parentId":2443,"tags":{},"startTime":1733747147527,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":639807,"timestamp":49403570933,"id":2443,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/edit-database"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":578289,"timestamp":49403634562,"id":2684,"parentId":2616,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":638445,"timestamp":49403574433,"id":2616,"parentId":2432,"tags":{"page":"/su/error-logs"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":579242,"timestamp":49403634406,"id":2683,"parentId":2615,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":639255,"timestamp":49403574415,"id":2615,"parentId":2432,"tags":{"page":"/su/envar"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":581482,"timestamp":49403634722,"id":2685,"parentId":2617,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":641781,"timestamp":49403574450,"id":2617,"parentId":2432,"tags":{"page":"/su"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":582202,"timestamp":49403635209,"id":2688,"parentId":2620,"tags":{},"startTime":1733747147538,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":642733,"timestamp":49403574701,"id":2620,"parentId":2432,"tags":{"page":"/su/servers"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":592162,"timestamp":49403625684,"id":2635,"parentId":2446,"tags":{},"startTime":1733747147528,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":646816,"timestamp":49403571052,"id":2446,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/shell"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":585676,"timestamp":49403635677,"id":2691,"parentId":2622,"tags":{},"startTime":1733747147538,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":646647,"timestamp":49403574739,"id":2622,"parentId":2432,"tags":{"page":"/su/users"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":585938,"timestamp":49403635523,"id":2690,"parentId":2623,"tags":{},"startTime":1733747147538,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":646720,"timestamp":49403574755,"id":2623,"parentId":2432,"tags":{"page":"/su/users/new"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":586206,"timestamp":49403636112,"id":2693,"parentId":2625,"tags":{},"startTime":1733747147539,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":647548,"timestamp":49403574796,"id":2625,"parentId":2432,"tags":{"page":"/unsubscribe"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":587833,"timestamp":49403635033,"id":2687,"parentId":2619,"tags":{},"startTime":1733747147538,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":648218,"timestamp":49403574669,"id":2619,"parentId":2432,"tags":{"page":"/su/login"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":600499,"timestamp":49403635895,"id":2692,"parentId":2624,"tags":{},"startTime":1733747147538,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":661658,"timestamp":49403574777,"id":2624,"parentId":2432,"tags":{"page":"/terms"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":601702,"timestamp":49403634859,"id":2686,"parentId":2618,"tags":{},"startTime":1733747147537,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":662114,"timestamp":49403574466,"id":2618,"parentId":2432,"tags":{"page":"/su/load-balancing"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":601280,"timestamp":49403635369,"id":2689,"parentId":2621,"tags":{},"startTime":1733747147538,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":661943,"timestamp":49403574721,"id":2621,"parentId":2432,"tags":{"page":"/su/users/[single]"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":610615,"timestamp":49403626119,"id":2636,"parentId":2448,"tags":{},"startTime":1733747147529,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":665638,"timestamp":49403571111,"id":2448,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":611914,"timestamp":49403624908,"id":2633,"parentId":2444,"tags":{},"startTime":1733747147527,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":665862,"timestamp":49403570975,"id":2444,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":612629,"timestamp":49403625384,"id":2634,"parentId":2445,"tags":{},"startTime":1733747147528,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":667025,"timestamp":49403571012,"id":2445,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/schema"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":619793,"timestamp":49403626399,"id":2637,"parentId":2449,"tags":{},"startTime":1733747147529,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":675058,"timestamp":49403571161,"id":2449,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":626610,"timestamp":49403631314,"id":2665,"parentId":2597,"tags":{},"startTime":1733747147534,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":683942,"timestamp":49403574068,"id":2597,"parentId":2432,"tags":{"page":"/docs/[page]/[sub-page]"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":633997,"timestamp":49403633321,"id":2676,"parentId":2609,"tags":{},"startTime":1733747147536,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":693058,"timestamp":49403574287,"id":2609,"parentId":2432,"tags":{"page":"/su/console"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":640537,"timestamp":49403631470,"id":2666,"parentId":2598,"tags":{},"startTime":1733747147534,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":697951,"timestamp":49403574087,"id":2598,"parentId":2432,"tags":{"page":"/docs/[page]"},"startTime":1733747147477,"traceId":"a901697cbe7cbd9f"},{"name":"is-page-static","duration":648473,"timestamp":49403626643,"id":2638,"parentId":2447,"tags":{},"startTime":1733747147529,"traceId":"a901697cbe7cbd9f"},{"name":"check-page","duration":704059,"timestamp":49403571078,"id":2447,"parentId":2432,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table"},"startTime":1733747147474,"traceId":"a901697cbe7cbd9f"},{"name":"static-check","duration":751119,"timestamp":49403524082,"id":2432,"parentId":1,"tags":{},"startTime":1733747147427,"traceId":"a901697cbe7cbd9f"},{"name":"generate-required-server-files","duration":364,"timestamp":49404275335,"id":2695,"parentId":1,"tags":{},"startTime":1733747148178,"traceId":"a901697cbe7cbd9f"},{"name":"write-routes-manifest","duration":10533,"timestamp":49404285418,"id":2697,"parentId":1,"tags":{},"startTime":1733747148188,"traceId":"a901697cbe7cbd9f"},{"name":"load-dotenv","duration":99,"timestamp":49404694351,"id":2700,"parentId":2699,"tags":{},"startTime":1733747148597,"traceId":"a901697cbe7cbd9f"},{"name":"run-export-path-map","duration":330,"timestamp":49406428283,"id":2701,"parentId":2699,"tags":{},"startTime":1733747150331,"traceId":"a901697cbe7cbd9f"},{"name":"next-export","duration":2764869,"timestamp":49404693801,"id":2699,"parentId":1,"tags":{},"startTime":1733747148596,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":76750,"timestamp":49407629853,"id":2702,"parentId":2698,"tags":{},"startTime":1733747151532,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":71689,"timestamp":49407706683,"id":2703,"parentId":2698,"tags":{},"startTime":1733747151609,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":58335,"timestamp":49407778436,"id":2704,"parentId":2698,"tags":{},"startTime":1733747151681,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":58422,"timestamp":49407836819,"id":2705,"parentId":2698,"tags":{},"startTime":1733747151739,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":75571,"timestamp":49407895299,"id":2706,"parentId":2698,"tags":{},"startTime":1733747151798,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":80679,"timestamp":49407970925,"id":2707,"parentId":2698,"tags":{},"startTime":1733747151874,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":141966,"timestamp":49408051670,"id":2708,"parentId":2698,"tags":{},"startTime":1733747151954,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":28105,"timestamp":49408193692,"id":2709,"parentId":2698,"tags":{},"startTime":1733747152096,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":191705,"timestamp":49408221861,"id":2710,"parentId":2698,"tags":{},"startTime":1733747152124,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":28533,"timestamp":49408413665,"id":2711,"parentId":2698,"tags":{},"startTime":1733747152316,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":18504,"timestamp":49408442216,"id":2712,"parentId":2698,"tags":{},"startTime":1733747152345,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":33734,"timestamp":49408460782,"id":2713,"parentId":2698,"tags":{},"startTime":1733747152363,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":43158,"timestamp":49408494535,"id":2714,"parentId":2698,"tags":{},"startTime":1733747152397,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":9233,"timestamp":49408537751,"id":2715,"parentId":2698,"tags":{},"startTime":1733747152440,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":13930,"timestamp":49408546995,"id":2716,"parentId":2698,"tags":{},"startTime":1733747152450,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":10778,"timestamp":49408560974,"id":2717,"parentId":2698,"tags":{},"startTime":1733747152464,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":86386,"timestamp":49408571768,"id":2718,"parentId":2698,"tags":{},"startTime":1733747152474,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":8567,"timestamp":49408658207,"id":2719,"parentId":2698,"tags":{},"startTime":1733747152561,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":276252,"timestamp":49408666787,"id":2720,"parentId":2698,"tags":{},"startTime":1733747152569,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":18946,"timestamp":49408943095,"id":2721,"parentId":2698,"tags":{},"startTime":1733747152846,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":222363,"timestamp":49408962054,"id":2722,"parentId":2698,"tags":{},"startTime":1733747152865,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":16938,"timestamp":49409184498,"id":2723,"parentId":2698,"tags":{},"startTime":1733747153087,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":36994,"timestamp":49409201451,"id":2724,"parentId":2698,"tags":{},"startTime":1733747153104,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":42079,"timestamp":49409238501,"id":2725,"parentId":2698,"tags":{},"startTime":1733747153141,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":48929,"timestamp":49409280594,"id":2726,"parentId":2698,"tags":{},"startTime":1733747153183,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":78440,"timestamp":49409329580,"id":2727,"parentId":2698,"tags":{},"startTime":1733747153232,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":20040,"timestamp":49409408039,"id":2728,"parentId":2698,"tags":{},"startTime":1733747153311,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":34470,"timestamp":49409428147,"id":2729,"parentId":2698,"tags":{},"startTime":1733747153331,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":20252,"timestamp":49409462635,"id":2730,"parentId":2698,"tags":{},"startTime":1733747153365,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":22662,"timestamp":49409482945,"id":2731,"parentId":2698,"tags":{},"startTime":1733747153386,"traceId":"a901697cbe7cbd9f"},{"name":"move-exported-page","duration":36272,"timestamp":49409505624,"id":2732,"parentId":2698,"tags":{},"startTime":1733747153408,"traceId":"a901697cbe7cbd9f"},{"name":"static-generation","duration":5715933,"timestamp":49404691832,"id":2698,"parentId":1,"tags":{},"startTime":1733747148594,"traceId":"a901697cbe7cbd9f"},{"name":"node-file-trace-build","duration":10318135,"timestamp":49404276866,"id":2696,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1733747148179,"traceId":"a901697cbe7cbd9f"},{"name":"apply-include-excludes","duration":1283,"timestamp":49414595021,"id":2733,"parentId":1,"tags":{},"startTime":1733747158498,"traceId":"a901697cbe7cbd9f"}] +[{"name":"print-tree-view","duration":7799,"timestamp":49414596655,"id":2734,"parentId":1,"tags":{},"startTime":1733747158499,"traceId":"a901697cbe7cbd9f"},{"name":"telemetry-flush","duration":53,"timestamp":49414604476,"id":2735,"parentId":1,"tags":{},"startTime":1733747158507,"traceId":"a901697cbe7cbd9f"},{"name":"next-build","duration":39136226,"timestamp":49375468310,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"15.0.3","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1733747119371,"traceId":"a901697cbe7cbd9f"}] diff --git a/dsql-app/package-shared/functions/api/social-login/facebookLogin.js b/dsql-app/package-shared/functions/api/social-login/facebookLogin.js index 7ca8996..f17a161 100755 --- a/dsql-app/package-shared/functions/api/social-login/facebookLogin.js +++ b/dsql-app/package-shared/functions/api/social-login/facebookLogin.js @@ -106,7 +106,7 @@ module.exports = async function facebookLogin({ usertype, body }) { //

We have a new buyer registration

//
Name: ${newFoundUser[0].first_name} ${newFoundUser[0].last_name}
//
Email: ${newFoundUser[0].email}
- //
Site: ${process.env.DSQL_HOST}
+ //
Site: ${process.env.DSQL_DB_HOST}
// `, // }).catch((error) => { // console.log( diff --git a/dsql-app/package-shared/functions/api/users/api-create-user.js b/dsql-app/package-shared/functions/api/users/api-create-user.js index 2580d5d..a22baa3 100644 --- a/dsql-app/package-shared/functions/api/users/api-create-user.js +++ b/dsql-app/package-shared/functions/api/users/api-create-user.js @@ -15,6 +15,7 @@ module.exports = async function apiCreateUser({ useLocal, }) { const dbFullName = database; + const API_USER_ID = userId || process.env.DSQL_API_USER_ID; const finalEncryptionKey = encryptionKey || process.env.DSQL_ENCRYPTION_PASSWORD; @@ -52,7 +53,7 @@ module.exports = async function apiCreateUser({ if (!fields?.[0]) { const newTable = await addUsersTableToDb({ - userId: Number(userId), + userId: Number(API_USER_ID), database: dbFullName, useLocal, payload: payload, @@ -82,7 +83,7 @@ module.exports = async function apiCreateUser({ const key = Object.keys(payload)[i]; if (!fieldsTitles.includes(key)) { await updateUsersTableSchema({ - userId: Number(userId), + userId: Number(API_USER_ID), database: dbFullName, newPayload: { [key]: payload[key], @@ -130,6 +131,7 @@ module.exports = async function apiCreateUser({ image: "/images/user-preset.png", image_thumbnail: "/images/user-preset-thumbnail.png", }, + useLocal, }); if (addUser?.insertId) { diff --git a/dsql-app/package-shared/functions/api/users/api-get-user.js b/dsql-app/package-shared/functions/api/users/api-get-user.js index b086e26..ab0025b 100644 --- a/dsql-app/package-shared/functions/api/users/api-get-user.js +++ b/dsql-app/package-shared/functions/api/users/api-get-user.js @@ -10,10 +10,11 @@ module.exports = async function apiGetUser({ useLocal, }) { const query = `SELECT ${fields.join(",")} FROM users WHERE id=?`; + const API_USER_ID = userId || process.env.DSQL_API_USER_ID; let foundUser = await varDatabaseDbHandler({ queryString: query, - queryValuesArray: [userId], + queryValuesArray: [API_USER_ID], database: dbFullName.replace(/[^a-z0-9_]/g, ""), useLocal, }); diff --git a/dsql-app/package-shared/functions/api/users/api-login.js b/dsql-app/package-shared/functions/api/users/api-login.js index d721937..87f0603 100644 --- a/dsql-app/package-shared/functions/api/users/api-login.js +++ b/dsql-app/package-shared/functions/api/users/api-login.js @@ -1,7 +1,5 @@ // @ts-check -const LOCAL_DB_HANDLER = require("../../../utils/backend/global-db/LOCAL_DB_HANDLER"); -const { writeAuthFile } = require("../../backend/auth/write-auth-files"); const varDatabaseDbHandler = require("../../backend/varDatabaseDbHandler"); const hashPassword = require("../../dsql/hashPassword"); diff --git a/dsql-app/package-shared/functions/api/users/api-reauth-user.js b/dsql-app/package-shared/functions/api/users/api-reauth-user.js index a47d5cb..3386bbb 100644 --- a/dsql-app/package-shared/functions/api/users/api-reauth-user.js +++ b/dsql-app/package-shared/functions/api/users/api-reauth-user.js @@ -8,7 +8,7 @@ const nodemailer = require("nodemailer"); * # Re-authenticate API user * @param {object} param * @param {Object} param.existingUser - * @param {string} param.database + * @param {string} [param.database] * @param {string[]} [param.additionalFields] * @param {boolean} [param.useLocal] * @@ -22,15 +22,12 @@ module.exports = async function apiReauthUser({ }) { let foundUser = existingUser?.id && existingUser.id.toString().match(/./) - ? useLocal - ? await LOCAL_DB_HANDLER(`SELECT * FROM users WHERE id=?`, [ - existingUser.id.toString(), - ]) - : await varDatabaseDbHandler({ - queryString: `SELECT * FROM users WHERE id=?`, - queryValuesArray: [existingUser.id.toString()], - database, - }) + ? await varDatabaseDbHandler({ + queryString: `SELECT * FROM users WHERE id=?`, + queryValuesArray: [existingUser.id.toString()], + database, + useLocal, + }) : null; //////////////////////////////////////// diff --git a/dsql-app/package-shared/functions/api/users/api-update-user.js b/dsql-app/package-shared/functions/api/users/api-update-user.js index a03c158..2214210 100644 --- a/dsql-app/package-shared/functions/api/users/api-update-user.js +++ b/dsql-app/package-shared/functions/api/users/api-update-user.js @@ -1,6 +1,5 @@ // @ts-check -const LOCAL_DB_HANDLER = require("../../../utils/backend/global-db/LOCAL_DB_HANDLER"); const updateDbEntry = require("../../backend/db/updateDbEntry"); const encrypt = require("../../dsql/encrypt"); const hashPassword = require("../../dsql/hashPassword"); diff --git a/dsql-app/package-shared/functions/backend/cookies/get-auth-cookie-names.js b/dsql-app/package-shared/functions/backend/cookies/get-auth-cookie-names.js index 5168adc..b9c498e 100644 --- a/dsql-app/package-shared/functions/backend/cookies/get-auth-cookie-names.js +++ b/dsql-app/package-shared/functions/backend/cookies/get-auth-cookie-names.js @@ -14,14 +14,18 @@ module.exports = function getAuthCookieNames(params) { const cookiesKeyName = process.env.DSQL_COOKIES_KEY_NAME || "key"; const cookiesCSRFName = process.env.DSQL_COOKIES_CSRF_NAME || "csrf"; + const targetDatabase = + params?.database || + process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/, ""); + let keyCookieName = cookiesPrefix; if (params?.userId) keyCookieName += `user_${params.userId}_`; - if (params?.database) keyCookieName += `${params.database}_`; + if (targetDatabase) keyCookieName += `${targetDatabase}_`; keyCookieName += cookiesKeyName; let csrfCookieName = cookiesPrefix; if (params?.userId) csrfCookieName += `user_${params.userId}_`; - if (params?.database) csrfCookieName += `${params.database}_`; + if (targetDatabase) csrfCookieName += `${targetDatabase}_`; csrfCookieName += cookiesCSRFName; return { diff --git a/dsql-app/package-shared/functions/backend/db/add.js b/dsql-app/package-shared/functions/backend/db/add.js deleted file mode 100644 index e091924..0000000 --- a/dsql-app/package-shared/functions/backend/db/add.js +++ /dev/null @@ -1,163 +0,0 @@ -// @ts-check - -const fs = require("fs"); -const DB_HANDLER = require("../../../utils/backend/global-db/DB_HANDLER"); - -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ - -/** - * Add Database Entry - * ============================================================================== - * @param {object} params - foundUser if any - * @param {string} params.tableName - Table Name - * @param {any} params.data - Data to be added - * @param {string} [params.duplicateColumnName] - Duplicate Column Name - * @param {string | number} [params.duplicateColumnValue] - Duplicate Column Value - */ -module.exports = async function addDbEntry({ - tableName, - data, - duplicateColumnName, - duplicateColumnValue, -}) { - /** - * Check Duplicate if specified - * - * @description Check Duplicate if specified - */ - if (duplicateColumnName) { - let duplicateEntry = await DB_HANDLER( - `SELECT ${duplicateColumnName} FROM ${tableName} WHERE ${duplicateColumnName}='${duplicateColumnValue}'` - ); - - if (duplicateEntry && duplicateEntry[0]) return null; - } - - /** - * Declare variables - * - * @description Declare "results" variable - */ - const dataKeys = Object.keys(data); - - let insertKeysArray = []; - let insertValuesArray = []; - - for (let i = 0; i < dataKeys.length; i++) { - const dataKey = dataKeys[i]; - let dataValue = data[dataKey]; - // const correspondingColumnObject = dbColumns.filter((col) => col.Field === dataKey); - // const { Field, Type, Null, Key, Default, Extra } = correspondingColumnObject; - - if (!dataValue) continue; - - insertKeysArray.push("`" + dataKey + "`"); - - if (typeof dataValue === "object") { - dataValue = JSON.stringify(data[dataKey]); - } - - // let parsedDataValue = dataValue.toString().replace(/\'/g, "\\'"); - - insertValuesArray.push(dataValue); - } - - //////////////////////////////////////// - // @ts-ignore - let existingDateCreatedColumn = await DB_HANDLER( - `SHOW COLUMNS FROM \`${tableName}\` WHERE Field = 'date_created'` - ); - if (!existingDateCreatedColumn || !existingDateCreatedColumn[0]) { - // @ts-ignore - await DB_HANDLER( - `ALTER TABLE ${tableName} ADD COLUMN date_created VARCHAR(255) NOT NULL` - ); - } - - insertKeysArray.push("date_created"); - insertValuesArray.push(Date()); - - //////////////////////////////////////// - - // @ts-ignore - let existingDateCreatedCodeColumn = await DB_HANDLER( - `SHOW COLUMNS FROM ${tableName} WHERE Field = 'date_created_code'` - ); - if (!existingDateCreatedCodeColumn || !existingDateCreatedCodeColumn[0]) { - // @ts-ignore - await DB_HANDLER( - `ALTER TABLE ${tableName} ADD COLUMN date_created_code BIGINT NOT NULL` - ); - } - - insertKeysArray.push("date_created_code"); - insertValuesArray.push(Date.now()); - - //////////////////////////////////////// - - // @ts-ignore - let existingDateCodeColumn = await DB_HANDLER( - `SHOW COLUMNS FROM ${tableName} WHERE Field = 'date_code'` - ); - if (existingDateCodeColumn && existingDateCodeColumn[0]) { - insertKeysArray.push("date_code"); - insertValuesArray.push(Date.now()); - } - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - // @ts-ignore - let existingDateUpdatedColumn = await DB_HANDLER( - `SHOW COLUMNS FROM ${tableName} WHERE Field = 'date_updated'` - ); - if (!existingDateUpdatedColumn || !existingDateUpdatedColumn[0]) { - // @ts-ignore - await DB_HANDLER( - `ALTER TABLE ${tableName} ADD COLUMN date_updated VARCHAR(255) NOT NULL` - ); - } - - insertKeysArray.push("date_updated"); - insertValuesArray.push(Date()); - - //////////////////////////////////////// - - // @ts-ignore - let existingDateUpdatedCodeColumn = await DB_HANDLER( - `SHOW COLUMNS FROM ${tableName} WHERE Field = 'date_updated_code'` - ); - if (!existingDateUpdatedCodeColumn || !existingDateUpdatedCodeColumn[0]) { - // @ts-ignore - await DB_HANDLER( - `ALTER TABLE ${tableName} ADD COLUMN date_updated_code BIGINT NOT NULL` - ); - } - - insertKeysArray.push("date_updated_code"); - insertValuesArray.push(Date.now()); - - //////////////////////////////////////// - - const query = `INSERT INTO ${tableName} (${insertKeysArray.join( - "," - )}) VALUES (${insertValuesArray.map((val) => "?").join(",")})`; - const queryValuesArray = insertValuesArray; - - // @ts-ignore - const newInsert = await DB_HANDLER(query, queryValuesArray); - - //////////////////////////////////////// - - return newInsert; - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// -}; diff --git a/dsql-app/package-shared/functions/backend/db/addDbEntry.js b/dsql-app/package-shared/functions/backend/db/addDbEntry.js index 38d99c8..7370157 100644 --- a/dsql-app/package-shared/functions/backend/db/addDbEntry.js +++ b/dsql-app/package-shared/functions/backend/db/addDbEntry.js @@ -51,7 +51,9 @@ async function addDbEntry({ /** * Initialize variables */ - const isMaster = dbContext?.match(/dsql.user/i) + const isMaster = useLocal + ? true + : dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false diff --git a/dsql-app/package-shared/functions/backend/db/deleteDbEntry.js b/dsql-app/package-shared/functions/backend/db/deleteDbEntry.js index 944ce50..ca450b8 100644 --- a/dsql-app/package-shared/functions/backend/db/deleteDbEntry.js +++ b/dsql-app/package-shared/functions/backend/db/deleteDbEntry.js @@ -41,7 +41,9 @@ async function deleteDbEntry({ /** * Check if data is valid */ - const isMaster = dbContext?.match(/dsql.user/i) + const isMaster = useLocal + ? true + : dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false diff --git a/dsql-app/package-shared/functions/backend/db/pathTraversalCheck.js b/dsql-app/package-shared/functions/backend/db/pathTraversalCheck.js index 2ac73b9..ee66714 100644 --- a/dsql-app/package-shared/functions/backend/db/pathTraversalCheck.js +++ b/dsql-app/package-shared/functions/backend/db/pathTraversalCheck.js @@ -1,41 +1,14 @@ // @ts-check -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// - /** - * Sanitize SQL function - * ============================================================================== - * @description this function takes in a text(or number) and returns a sanitized - * text, usually without spaces + * # Path Traversal Check * * @param {string|number} text - Text or number or object * * @returns {string} */ function pathTraversalCheck(text) { - /** - * Initial Checks - * - * @description Initial Checks - */ - return text.toString().replace(/\//g, ""); - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// } -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// - module.exports = pathTraversalCheck; diff --git a/dsql-app/package-shared/functions/backend/db/runQuery.js b/dsql-app/package-shared/functions/backend/db/runQuery.js index 7a64702..1c4eb3b 100644 --- a/dsql-app/package-shared/functions/backend/db/runQuery.js +++ b/dsql-app/package-shared/functions/backend/db/runQuery.js @@ -1,12 +1,3 @@ -/** # MODULE TRACE -====================================================================== - * Detected 3 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [get.js] => file:///d:\GitHub\datasquirel\pages\api\query\get.js - * `import` Statement Found in [post.js] => file:///d:\GitHub\datasquirel\pages\api\query\post.js - * `import` Statement Found in [add-user.js] => file:///d:\GitHub\datasquirel\pages\api\user\add-user.js -==== MODULE TRACE END ==== */ - // @ts-check const fs = require("fs"); @@ -15,20 +6,12 @@ const LOCAL_DB_HANDLER = require("../../../utils/backend/global-db/LOCAL_DB_HAND const fullAccessDbHandler = require("../fullAccessDbHandler"); const varReadOnlyDatabaseDbHandler = require("../varReadOnlyDatabaseDbHandler"); const serverError = require("../serverError"); - const addDbEntry = require("./addDbEntry"); const updateDbEntry = require("./updateDbEntry"); const deleteDbEntry = require("./deleteDbEntry"); const parseDbResults = require("../parseDbResults"); const trimSql = require("../../../utils/trim-sql"); -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ - /** * Run DSQL users queries * ============================================================================== @@ -100,31 +83,19 @@ async function runQuery({ if ( readOnly && formattedQuery.match( - /^alter|^delete|information_schema|databases|^create/i + /^alter|^delete|information_schema|^create/i ) ) { throw new Error("Wrong Input!"); } - if (local) { - console.log("Using Local ..."); - - const rawResults = await LOCAL_DB_HANDLER( - formattedQuery, - queryValuesArray - ); - result = tableSchema - ? parseDbResults({ - unparsedResults: rawResults, - tableSchema, - }) - : rawResults; - } else if (readOnly) { + if (readOnly) { result = await varReadOnlyDatabaseDbHandler({ queryString: formattedQuery, queryValuesArray: queryValuesArray?.map((vl) => String(vl)), database: dbFullName, tableSchema, + useLocal: local, }); } else { result = await fullAccessDbHandler({ @@ -132,6 +103,7 @@ async function runQuery({ queryValuesArray: queryValuesArray?.map((vl) => String(vl)), database: dbFullName, tableSchema, + local, }); } } else if (typeof query === "object") { @@ -163,6 +135,7 @@ async function runQuery({ duplicateColumnName, duplicateColumnValue, tableSchema, + useLocal: local, }); if (!result?.insertId) { @@ -181,6 +154,7 @@ async function runQuery({ identifierColumnName, identifierValue, tableSchema, + useLocal: local, }); break; @@ -194,6 +168,7 @@ async function runQuery({ identifierColumnName, identifierValue, tableSchema, + useLocal: local, }); break; diff --git a/dsql-app/package-shared/functions/backend/db/sanitizeSql.js b/dsql-app/package-shared/functions/backend/db/sanitizeSql.js index 360d7d6..9cc6fdd 100644 --- a/dsql-app/package-shared/functions/backend/db/sanitizeSql.js +++ b/dsql-app/package-shared/functions/backend/db/sanitizeSql.js @@ -2,13 +2,6 @@ const _ = require("lodash"); -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// - /** * Sanitize SQL function * ============================================================================== @@ -22,53 +15,18 @@ const _ = require("lodash"); * @returns {any} */ function sanitizeSql(text, spaces, regex) { - /** - * Initial Checks - * - * @description Initial Checks - */ if (!text) return ""; if (typeof text == "number" || typeof text == "boolean") return text; if (typeof text == "string" && !text?.toString()?.match(/./)) return ""; if (typeof text == "object" && !Array.isArray(text)) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const newObject = sanitizeObjects(text, spaces); return newObject; - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// } else if (typeof text == "object" && Array.isArray(text)) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const newArray = sanitizeArrays(text, spaces); return newArray; - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// } - // if (text?.toString()?.match(/\'|\"/)) { - // console.log("TEXT containing commas =>", text); - // return ""; - // } - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - /** - * Declare variables - * - * @description Declare "results" variable - */ let finalText = text; if (regex) { @@ -83,45 +41,18 @@ function sanitizeSql(text, spaces, regex) { .replace(/ /g, ""); } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const escapeRegex = /select |insert |drop |delete |alter |create |exec | union | or | like | concat|LOAD_FILE|ASCII| COLLATE | HAVING | information_schema|DECLARE |\#|WAITFOR |delay |BENCHMARK |\/\*.*\*\//gi; finalText = finalText .replace(/(?", text); - // return ""; - // } - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return finalText; - - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// } -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// - /** * Sanitize Objects Function * ============================================================================== @@ -157,13 +88,6 @@ function sanitizeObjects(object, spaces) { return objectUpdated; } -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// - /** * Sanitize Objects Function * ============================================================================== @@ -197,11 +121,4 @@ function sanitizeArrays(array, spaces) { return arrayUpdated; } -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// - module.exports = sanitizeSql; diff --git a/dsql-app/package-shared/functions/backend/db/updateDbEntry.js b/dsql-app/package-shared/functions/backend/db/updateDbEntry.js index 3330114..95fa8cb 100644 --- a/dsql-app/package-shared/functions/backend/db/updateDbEntry.js +++ b/dsql-app/package-shared/functions/backend/db/updateDbEntry.js @@ -51,7 +51,9 @@ async function updateDbEntry({ */ if (!data || !Object.keys(data).length) return null; - const isMaster = dbContext?.match(/dsql.user/i) + const isMaster = useLocal + ? true + : dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false diff --git a/dsql-app/package-shared/functions/backend/defaultFieldsRegexp.js b/dsql-app/package-shared/functions/backend/defaultFieldsRegexp.js index 080dea6..acbcde7 100644 --- a/dsql-app/package-shared/functions/backend/defaultFieldsRegexp.js +++ b/dsql-app/package-shared/functions/backend/defaultFieldsRegexp.js @@ -8,8 +8,4 @@ const defaultFieldsRegexp = /^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - module.exports = defaultFieldsRegexp; diff --git a/dsql-app/package-shared/functions/backend/fullAccessDbHandler.js b/dsql-app/package-shared/functions/backend/fullAccessDbHandler.js index d789f1d..beb7b5a 100644 --- a/dsql-app/package-shared/functions/backend/fullAccessDbHandler.js +++ b/dsql-app/package-shared/functions/backend/fullAccessDbHandler.js @@ -1,6 +1,7 @@ // @ts-check const DSQL_USER_DB_HANDLER = require("../../utils/backend/global-db/DSQL_USER_DB_HANDLER"); +const LOCAL_DB_HANDLER = require("../../utils/backend/global-db/LOCAL_DB_HANDLER"); const parseDbResults = require("./parseDbResults"); const serverError = require("./serverError"); @@ -36,12 +37,14 @@ module.exports = async function fullAccessDbHandler({ try { /** ********************* Run Query */ - results = await DSQL_USER_DB_HANDLER({ - paradigm: "Full Access", - database, - queryString, - queryValues: queryValuesArray, - }); + results = local + ? await LOCAL_DB_HANDLER(queryString, queryValuesArray) + : await DSQL_USER_DB_HANDLER({ + paradigm: "Full Access", + database, + queryString, + queryValues: queryValuesArray, + }); //////////////////////////////////////// } catch (/** @type {any} */ error) { diff --git a/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.js b/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.js index c58d67e..5e225dd 100644 --- a/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.js +++ b/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.js @@ -31,7 +31,11 @@ module.exports = async function varDatabaseDbHandler({ * * @description Declare "results" variable */ - const isMaster = database?.match(/^datasquirel$/) ? true : false; + const isMaster = useLocal + ? true + : database?.match(/^datasquirel$/) + ? true + : false; /** @type {any} */ const FINAL_DB_HANDLER = useLocal diff --git a/dsql-app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js b/dsql-app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js index 6b8d9e5..5910b67 100644 --- a/dsql-app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js +++ b/dsql-app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js @@ -4,6 +4,7 @@ const fs = require("fs"); const serverError = require("./serverError"); const parseDbResults = require("./parseDbResults"); const DSQL_USER_DB_HANDLER = require("../../utils/backend/global-db/DSQL_USER_DB_HANDLER"); +const LOCAL_DB_HANDLER = require("../../utils/backend/global-db/LOCAL_DB_HANDLER"); /** * @@ -12,6 +13,7 @@ const DSQL_USER_DB_HANDLER = require("../../utils/backend/global-db/DSQL_USER_DB * @param {string} param0.database * @param {string[]} [param0.queryValuesArray] * @param {import("../../types").DSQL_TableSchemaType} [param0.tableSchema] + * @param {boolean} [param0.useLocal] * @returns */ module.exports = async function varReadOnlyDatabaseDbHandler({ @@ -19,6 +21,7 @@ module.exports = async function varReadOnlyDatabaseDbHandler({ database, queryValuesArray, tableSchema, + useLocal, }) { /** * Declare variables @@ -33,12 +36,14 @@ module.exports = async function varReadOnlyDatabaseDbHandler({ * @description Fetch data from db if no cache */ try { - results = await DSQL_USER_DB_HANDLER({ - paradigm: "Read Only", - database, - queryString, - queryValues: queryValuesArray, - }); + results = useLocal + ? await LOCAL_DB_HANDLER(queryString, queryValuesArray) + : await DSQL_USER_DB_HANDLER({ + paradigm: "Read Only", + database, + queryString, + queryValues: queryValuesArray, + }); //////////////////////////////////////// } catch (/** @type {any} */ error) { diff --git a/dsql-app/package-shared/types/index.ts b/dsql-app/package-shared/types/index.ts index 5250930..2a26ad9 100644 --- a/dsql-app/package-shared/types/index.ts +++ b/dsql-app/package-shared/types/index.ts @@ -256,8 +256,8 @@ export type UserDataPayload = { first_name: string; last_name: string; email: string; - password: string; - username: string; + password?: string; + username?: string; } & { [key: string]: any; }; diff --git a/dsql-app/package.json b/dsql-app/package.json index fcd7ac5..81cd40b 100644 --- a/dsql-app/package.json +++ b/dsql-app/package.json @@ -43,7 +43,7 @@ "@heroicons/react": "^1.0.6", "@mdx-js/loader": "^3.1.0", "@mdx-js/react": "^3.1.0", - "@moduletrace/datasquirel": "^2.7.8", + "@moduletrace/datasquirel": "^2.7.9", "@monaco-editor/react": "^4.6.0", "@next/mdx": "^15.0.3", "@radix-ui/react-icons": "^1.3.0",